imagex_mount_rw_or_no(): Fix early return
authorEric Biggers <ebiggers3@gmail.com>
Sun, 3 Mar 2013 19:57:13 +0000 (13:57 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 3 Mar 2013 21:56:47 +0000 (15:56 -0600)
programs/imagex.c

index 30ffd3740cae2ff2cf554ff5ea874eba5bb273cd..5ab9aeba8ce96425e51141909011079de5470bef 100644 (file)
@@ -1489,7 +1489,7 @@ static int imagex_mount_rw_or_ro(int argc, const char **argv)
        if (mount_flags & WIMLIB_MOUNT_FLAG_READWRITE) {
                ret = file_writable(wimfile);
                if (ret != 0)
        if (mount_flags & WIMLIB_MOUNT_FLAG_READWRITE) {
                ret = file_writable(wimfile);
                if (ret != 0)
-                       return ret;
+                       goto out;
        }
 
        ret = wimlib_mount_image(w, image, dir, mount_flags, additional_swms,
        }
 
        ret = wimlib_mount_image(w, image, dir, mount_flags, additional_swms,