From: Peter Howkins Date: Wed, 4 Jul 2018 22:02:09 +0000 (+0100) Subject: dtcm: Coverity 89287 X-Git-Tag: 2.3.0a~174 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=008c224771b07c8f664f2ae2f03a78fdfcfdd387;p=oweals%2Fcde.git dtcm: Coverity 89287 --- diff --git a/cde/programs/dtcm/dtcm/dnd.c b/cde/programs/dtcm/dtcm/dnd.c index 0628e26b..212c4c70 100644 --- a/cde/programs/dtcm/dtcm/dnd.c +++ b/cde/programs/dtcm/dtcm/dnd.c @@ -83,7 +83,7 @@ static Boolean validate_dropped_appt(char *filename, Calendar *c) { Props *p = (Props *)c->properties; Props_pu *pu = (Props_pu *)c->properties_pu; - CmDataList *list = CmDataListCreate(); + CmDataList *list = NULL; Validate_op op; int i; Dtcm_appointment *a; @@ -91,6 +91,8 @@ validate_dropped_appt(char *filename, Calendar *c) { if (!filename || *filename == '\0') return(False); + list = CmDataListCreate(); + op = parse_appt_from_file(c->DT_catd, filename, list, p, query_user, (void *)c, c->general->version);