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:
3c056ef
)
dtcm: Coverity 88613
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 21:09:23 +0000
(22:09 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 21:09:23 +0000
(22:09 +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 1c1687161b72793d36c15f801d0f19450f25b5cb..0628e26b9e8e8057c1e6859fd9b6226558ab5db7 100644
(file)
--- a/
cde/programs/dtcm/dtcm/dnd.c
+++ b/
cde/programs/dtcm/dtcm/dnd.c
@@
-396,7
+396,7
@@
extern int
drag_load_proc(char *filename, Calendar *c) {
int ret_val, i = 1;
char buf[MAXNAMELEN * 2];
- CmDataList *list =
CmDataListCreate()
;
+ CmDataList *list =
NULL
;
Props *p = (Props *)c->properties;
Props_pu *pu = (Props_pu *)c->properties_pu;
Validate_op op;
@@
-406,6
+406,8
@@
drag_load_proc(char *filename, Calendar *c) {
if (!filename || *filename == '\0')
return -1;
+ list = CmDataListCreate();
+
op = parse_appt_from_file(c->DT_catd, filename, list, p, query_user,
(void *)c, c->general->version);
if (list->count <= 0) {