]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Limit the scope of a variable.
authorTim Kientzle <kientzle@gmail.com>
Sat, 5 Jun 2010 01:52:51 +0000 (21:52 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 5 Jun 2010 01:52:51 +0000 (21:52 -0400)
SVN-Revision: 2445

libarchive/archive_write_set_format_iso9660.c

index bee973859e206ce001eeb59865e3f63cfeb159c8..669dc96a8c70edc31a1b0d9536460b6d8eb0c124 100644 (file)
@@ -1228,7 +1228,7 @@ iso9660_options(struct archive_write *a, const char *key, const char *value)
 {
        struct iso9660 *iso9660 = a->format_data;
        const char *p;
-       int num, r;
+       int r;
 
        switch (key[0]) {
        case 'a':
@@ -1314,6 +1314,7 @@ iso9660_options(struct archive_write *a, const char *key, const char *value)
                        return (ARCHIVE_OK);
                }
                if (strcmp(key, "boot-load-size") == 0) {
+                       int num = 0;
                        r = get_num_opt(a, &num, 0xffff, 1, key, value);
                        iso9660->opt.boot_load_size = r == ARCHIVE_OK;
                        if (r != ARCHIVE_OK)