Prevented potential NULL pointer dereference. Coverity CID 28759.

This commit is contained in:
Thomas Schmitt 2015-11-03 15:51:02 +00:00
parent 9efb046330
commit e2d152f104
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
Copyright 2007-2014 Thomas Schmitt, <scdbackup@gmx.net>
Copyright 2007-2015 Thomas Schmitt, <scdbackup@gmx.net>
Provided under GPL version 2 or later.
@ -464,7 +464,7 @@ int Findjob_new_node(struct FindjoB *job, struct ExprnodE **fnode,
char *origin, int flag)
/*
bit0= open new branch
bit1= with bit1 : do not register as sub-node of job->cursor
bit1= with bit0 : do not register as sub-node of job->cursor
*/
{
int ret;
@ -489,6 +489,7 @@ int Findjob_new_node(struct FindjoB *job, struct ExprnodE **fnode,
job->cursor->sub= f;
}
} else {
if(job->cursor != NULL)
f->up= job->cursor->up;
f->left= job->cursor;
if(job->cursor!=NULL)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.03.154102"
#define Xorriso_timestamP "2015.11.03.155015"