From: Andres Mejia Date: Fri, 8 Feb 2013 01:04:40 +0000 (-0500) Subject: Initialize buff, fix valgrind warning about use of uninitialized bytes. X-Git-Tag: v3.1.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee59330932b42008429301d913bd75690731509d;p=thirdparty%2Flibarchive.git Initialize buff, fix valgrind warning about use of uninitialized bytes. --- diff --git a/libarchive/test/test_sparse_basic.c b/libarchive/test/test_sparse_basic.c index 67c51dd35..1963aa498 100644 --- a/libarchive/test/test_sparse_basic.c +++ b/libarchive/test/test_sparse_basic.c @@ -173,6 +173,7 @@ is_sparse_supported(const char *path) const char *testfile = "can_sparse"; (void)path; /* UNUSED */ + memset(buff, 0, sizeof(buff)); create_sparse_file(testfile, sparse_file); fd = open(testfile, O_RDWR); if (fd < 0)