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:
f688676
)
dtcm: Coverity 89313
author
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 18:06:58 +0000
(19:06 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 18:06:58 +0000
(19:06 +0100)
cde/programs/dtcm/server/delete.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/server/delete.c
b/cde/programs/dtcm/server/delete.c
index 31ee29e23d0ba1a354f4b2d2aeaf22b7fadb6f28..7e4d941cf6ac4f69eff9a911ae4161371d14ffbb 100644
(file)
--- a/
cde/programs/dtcm/server/delete.c
+++ b/
cde/programs/dtcm/server/delete.c
@@
-351,7
+351,7
@@
static CSA_return_code
_AddException(cms_attribute *attr, time_t time)
{
CSA_date_time_entry *dt, *dlist, *prev;
- cms_attribute_value *val;
+ cms_attribute_value *val
= NULL
;
time_t tick;
char buf[20];
@@
-378,7
+378,7
@@
_AddException(cms_attribute *attr, time_t time)
val->type = CSA_VALUE_DATE_TIME_LIST;
}
- if (
attr->value->item.date_time_list_value == NULL
) {
+ if (
val && (attr->value->item.date_time_list_value == NULL)
) {
val->item.date_time_list_value = dt;
} else {
for (dlist = attr->value->item.date_time_list_value, prev=NULL;