mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Avoid a NULL pointer dereference
"dtcm: Coverity 89051" fixed an instance of this on the previous line, but not this one.
This commit is contained in:
parent
4d7f9df692
commit
a97ab71059
1 changed files with 2 additions and 1 deletions
|
@ -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 *)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue