Browse Source

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

release-1.5.4.branch
Thomas Schmitt 6 years ago
parent
commit
7ef616f268
  1. 3
      libisofs/ecma119_tree.c

3
libisofs/ecma119_tree.c

@ -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…
Cancel
Save