Prevented potential NULL pointer dereference. Coverity CID 28759.

master
Thomas Schmitt 7 years ago
parent 9efb046330
commit e2d152f104
  1. 7
      xorriso/findjob.c
  2. 2
      xorriso/xorriso_timestamp.h

@ -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,7 +489,8 @@ int Findjob_new_node(struct FindjoB *job, struct ExprnodE **fnode,
job->cursor->sub= f;
}
} else {
f->up= job->cursor->up;
if(job->cursor != NULL)
f->up= job->cursor->up;
f->left= job->cursor;
if(job->cursor!=NULL)
job->cursor->right= f;

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

Loading…
Cancel
Save