projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70da233
)
dtcm: Coverity 88910
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 02:57:06 +0000
(
03:57
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 02:57:06 +0000
(
03:57
+0100)
cde/programs/dtcm/server/insert.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/server/insert.c
b/cde/programs/dtcm/server/insert.c
index 4adb74e92d7c1bae961b0ccad090c10119852998..4179a771e2b27a7809241605cd6b95f548553b64 100644
(file)
--- 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);