wimlib_mount_image(): Correctly return NOMEM in one case
authorEric Biggers <ebiggers3@gmail.com>
Mon, 10 Feb 2014 00:25:32 +0000 (18:25 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 10 Feb 2014 00:25:32 +0000 (18:25 -0600)
src/mount_image.c

index 586722e..41478d9 100644 (file)
@@ -2476,8 +2476,10 @@ wimlib_mount_image(WIMStruct *wim, int image, const char *dir,
        DEBUG("Preparing arguments to fuse_main()");
 
        dir_copy = STRDUP(dir);
-       if (!dir_copy)
+       if (!dir_copy) {
+               ret = WIMLIB_ERR_NOMEM;
                goto out_free_message_queue_names;
+       }
 
        argc = 0;
        argv[argc++] = "wimlib";