]> wimlib.net Git - wimlib/blobdiff - src/mount_image.c
wimlib_mount_image(): Correctly return NOMEM in one case
[wimlib] / src / mount_image.c
index 586722e50fc84fb25c27f1a127583b8a4d6c4da5..41478d92a43dd8566c83c53a3f15bc35ff48c01a 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);
        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;
                goto out_free_message_queue_names;
+       }
 
        argc = 0;
        argv[argc++] = "wimlib";
 
        argc = 0;
        argv[argc++] = "wimlib";