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:
4d7f9df
)
Avoid a NULL pointer dereference
author
Adam Sampson
<ats@offog.org>
Sat, 26 Jan 2019 00:03:34 +0000
(
00:03
+0000)
committer
Adam Sampson
<ats@offog.org>
Sat, 26 Jan 2019 00:03:34 +0000
(
00:03
+0000)
"dtcm: Coverity 89051" fixed an instance of this on the previous line,
but not this one.
cde/programs/dtcm/dtcm/group_editor.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/dtcm/group_editor.c
b/cde/programs/dtcm/dtcm/group_editor.c
index cb51f948feaab6eb74f63d455f0ddeaf423ccf61..9c528e360f4d27b9f601ea3ac001832a684efc8d 100644
(file)
--- a/
cde/programs/dtcm/dtcm/group_editor.c
+++ b/
cde/programs/dtcm/dtcm/group_editor.c
@@
-1685,13
+1685,14
@@
add_to_gaccess_list(
char access, *buf;
XmString xmstr;
Calendar *c;
- Props_pu *p
= (Props_pu *)ge->cal->properties_pu
;
+ Props_pu *p;
Access_data *new_data = NULL;
if (!ge)
return;
c = ge->cal;
+ p = (Props_pu *)c->properties_pu;
while (ge->access_data && cnt <= ge->access_data->count) {
new_data = (Access_data *)