diff --git a/libisofs/ecma119_tree.c b/libisofs/ecma119_tree.c index 9e8ee52..cf4fb5d 100644 --- a/libisofs/ecma119_tree.c +++ b/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;