From: Peter Howkins Date: Wed, 4 Jul 2018 02:57:06 +0000 (+0100) Subject: dtcm: Coverity 88910 X-Git-Tag: 2.3.0a~192 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ea62fea56d467f6338269bb212cd32d2662b352;p=oweals%2Fcde.git dtcm: Coverity 88910 --- diff --git a/cde/programs/dtcm/server/insert.c b/cde/programs/dtcm/server/insert.c index 4adb74e9..4179a771 100644 --- a/cde/programs/dtcm/server/insert.c +++ b/cde/programs/dtcm/server/insert.c @@ -90,7 +90,7 @@ _DtCmsInsertEntry(_DtCmsCalendar *cal, cms_entry *entry) CSA_opaque_data opq; cms_attribute *aptr; RepeatEvent *re = NULL; - RepeatEventState *res; + RepeatEventState *res = NULL; extern void _DtCm_rule_parser(); uint count; int i; @@ -176,6 +176,9 @@ _DtCmsInsertEntry(_DtCmsCalendar *cal, cms_entry *entry) } } + /* Tidy unused variable */ + free(res); + if ((stat = _DtCmsCheckStartEndTime(entry)) != CSA_SUCCESS) return (stat);