]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Make sure that fd has a valid value.
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Mon, 26 Apr 2010 20:26:40 +0000 (16:26 -0400)
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Mon, 26 Apr 2010 20:26:40 +0000 (16:26 -0400)
SVN-Revision: 2316

libarchive/archive_util.c

index fde9bbd867dbad99423f8dc618e1fc6f78c95423..1188981f65eafd541908e8a79e7366a27d83a4bc 100644 (file)
@@ -430,7 +430,7 @@ int
 __archive_mktemp(const char *tmpdir)
 {
        struct archive_string temp_name;
-       int fd;
+       int fd = -1;
 
        archive_string_init(&temp_name);
        if (tmpdir == NULL) {