Delaying access to pointer until after NULL check. Coverity CID 12583.
This commit is contained in:
parent
d5f1eb9c65
commit
7ef616f268
@ -410,11 +410,12 @@ int create_tree(Ecma119Image *image, IsoNode *iso, Ecma119Node **tree,
|
||||
int max_path;
|
||||
char *iso_name= NULL, *ipath = NULL;
|
||||
IsoFileSrc *src = NULL;
|
||||
IsoWriteOpts *opts = image->opts;
|
||||
IsoWriteOpts *opts;
|
||||
|
||||
if (image == NULL || iso == NULL || tree == NULL) {
|
||||
return ISO_NULL_POINTER;
|
||||
}
|
||||
opts = image->opts;
|
||||
*tree = NULL;
|
||||
|
||||
hidden = flag & 1;
|
||||
|
Loading…
Reference in New Issue
Block a user