mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: Coverity 88613
This commit is contained in:
parent
3c056ef018
commit
4f40139793
1 changed files with 3 additions and 1 deletions
|
@ -396,7 +396,7 @@ extern int
|
||||||
drag_load_proc(char *filename, Calendar *c) {
|
drag_load_proc(char *filename, Calendar *c) {
|
||||||
int ret_val, i = 1;
|
int ret_val, i = 1;
|
||||||
char buf[MAXNAMELEN * 2];
|
char buf[MAXNAMELEN * 2];
|
||||||
CmDataList *list = CmDataListCreate();
|
CmDataList *list = NULL;
|
||||||
Props *p = (Props *)c->properties;
|
Props *p = (Props *)c->properties;
|
||||||
Props_pu *pu = (Props_pu *)c->properties_pu;
|
Props_pu *pu = (Props_pu *)c->properties_pu;
|
||||||
Validate_op op;
|
Validate_op op;
|
||||||
|
@ -406,6 +406,8 @@ drag_load_proc(char *filename, Calendar *c) {
|
||||||
if (!filename || *filename == '\0')
|
if (!filename || *filename == '\0')
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
list = CmDataListCreate();
|
||||||
|
|
||||||
op = parse_appt_from_file(c->DT_catd, filename, list, p, query_user,
|
op = parse_appt_from_file(c->DT_catd, filename, list, p, query_user,
|
||||||
(void *)c, c->general->version);
|
(void *)c, c->general->version);
|
||||||
if (list->count <= 0) {
|
if (list->count <= 0) {
|
||||||
|
|
Loading…
Reference in a new issue