Accept empty DESCRIPTION in ical import

Adresses GitHub issue #274.

Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lars Henriksen
2020-04-03 20:34:20 +02:00
committed by Lukas Fleischer
parent 37d326cbe1
commit 214a761564
2 changed files with 3 additions and 7 deletions

View File

@@ -899,11 +899,6 @@ static char *ical_read_note(char *line, unsigned *noskipped,
ical_log(log, item_type, itemline, _("malformed description."));
(*noskipped)++;
return NULL;
} else if (strlen(notestr) == 0) {
mem_free(notestr);
ical_log(log, item_type, itemline, _("empty description."));
(*noskipped)++;
return NULL;
} else {
note = generate_note(notestr);
mem_free(notestr);