diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 4302cc1167b5edaa157a0c3f11b34045ebe8c27d
parent b75f66fb6ad8ef75f83830bd0e87024cba3f2ffe
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun, 17 Oct 2021 23:23:37 +0200

fix null descr segfault

Diffstat:
Msrc/import.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/import.c b/src/import.c @@ -36,7 +36,7 @@ void ics_import(const char* ics_input, WINDOW* header, WINDOW* cal, WINDOW* asid vevent = extract_ical_field(i, "BEGIN:VEVENT", &search_pos, false); vevent_date = extract_ical_field(i, "DTSTART", &search_pos, false); vevent_desc = extract_ical_field(i, "DESCRIPTION", &search_pos, true); - if (vevent == NULL) { + if (vevent == NULL || vevent_desc == NULL) { break; }