From: Joerg Sonnenberger Date: Mon, 26 Apr 2010 20:26:40 +0000 (-0400) Subject: Make sure that fd has a valid value. X-Git-Tag: v3.0.0a~1074 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b96757402a84c3cf92c25233e53d0abee97370e9;p=thirdparty%2Flibarchive.git Make sure that fd has a valid value. SVN-Revision: 2316 --- diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c index fde9bbd86..1188981f6 100644 --- a/libarchive/archive_util.c +++ b/libarchive/archive_util.c @@ -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) {