]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Initialize variables; fix a compile warning.
authorTim Kientzle <kientzle@gmail.com>
Wed, 4 Feb 2009 17:51:25 +0000 (12:51 -0500)
committerTim Kientzle <kientzle@gmail.com>
Wed, 4 Feb 2009 17:51:25 +0000 (12:51 -0500)
SVN-Revision: 543

libarchive/archive_util.c

index 22b5699a4b08589d2876d6114e33e6235fa5ccdd..efaebb677a0d8e7976c97c038158713e0030a526 100644 (file)
@@ -237,6 +237,8 @@ __archive_parse_options(const char *p, const char *fn, int keysize, char *key,
 
        p_org = p;
        state = INIT;
+       kidx = vidx = negative = 0;
+       apply = 1;
        while (*p) {
                switch (state) {
                case INIT: