]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Properly initialize struct tm object.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 28 Jan 2010 02:41:06 +0000 (21:41 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 28 Jan 2010 02:41:06 +0000 (21:41 -0500)
SVN-Revision: 1844

libarchive/archive_read_support_format_xar.c

index 14892403f71f48b0e9176b4b4dbd27045fb86cec..b914975423d5c1848b56fa7095804c9f311ae259 100644 (file)
@@ -1030,6 +1030,7 @@ parse_time(const char *p, size_t n)
        time_t t = 0;
        int64_t data;
 
+       memset(&tm, 0, sizeof(tm));
        if (n != 20)
                return (t);
        data = atol10(p, 4);