Delaying access to pointer until after NULL check. Coverity CID 12583.

This commit is contained in:
Thomas Schmitt 2015-10-10 15:53:55 +02:00
parent d5f1eb9c65
commit 7ef616f268

View File

@ -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;