summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Mejia <amejia004@gmail.com>2013-02-07 20:04:40 -0500
committerAndres Mejia <amejia004@gmail.com>2013-02-07 20:04:40 -0500
commitee59330932b42008429301d913bd75690731509d (patch)
tree861d0e67ded29a68a3f4bb4b2249b02bd663b135
parent4955ee15ecaa1aa7850dfe6b0b7a1a73046a2b45 (diff)
downloadlibarchive-ee59330932b42008429301d913bd75690731509d.tar.gz
Initialize buff, fix valgrind warning about use of uninitialized bytes.
-rw-r--r--libarchive/test/test_sparse_basic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libarchive/test/test_sparse_basic.c b/libarchive/test/test_sparse_basic.c
index 67c51dd3..1963aa49 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)