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:
6bf5856
)
dtcm: Coverity 89287
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 22:02:09 +0000
(23:02 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 22:02:09 +0000
(23:02 +0100)
cde/programs/dtcm/dtcm/dnd.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/dtcm/dnd.c
b/cde/programs/dtcm/dtcm/dnd.c
index 0628e26b9e8e8057c1e6859fd9b6226558ab5db7..212c4c70ff8b181e10bb771dcd3cde77b69d34f1 100644
(file)
--- 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);