wimlib_mount_image(): Move "argc = 0"
authorEric Biggers <ebiggers3@gmail.com>
Sun, 3 Mar 2013 22:35:00 +0000 (16:35 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 3 Mar 2013 22:35:00 +0000 (16:35 -0600)
src/mount_image.c

index bd1a7d5..7006c7e 100644 (file)
@@ -2325,7 +2325,7 @@ WIMLIBAPI int wimlib_mount_image(WIMStruct *wim, int image, const char *dir,
                                 unsigned num_additional_swms,
                                 const char *staging_dir)
 {
-       int argc = 0;
+       int argc;
        char *argv[16];
        int ret;
        char *dir_copy;
@@ -2425,6 +2425,7 @@ WIMLIBAPI int wimlib_mount_image(WIMStruct *wim, int image, const char *dir,
        if (!dir_copy)
                goto out_free_message_queue_names;
 
+       argc = 0;
        argv[argc++] = "imagex";
        argv[argc++] = dir_copy;