diff options
author | Andres Mejia <amejia004@gmail.com> | 2013-02-07 20:04:40 -0500 |
---|---|---|
committer | Andres Mejia <amejia004@gmail.com> | 2013-02-07 20:04:40 -0500 |
commit | ee59330932b42008429301d913bd75690731509d (patch) | |
tree | 861d0e67ded29a68a3f4bb4b2249b02bd663b135 | |
parent | 4955ee15ecaa1aa7850dfe6b0b7a1a73046a2b45 (diff) | |
download | libarchive-ee59330932b42008429301d913bd75690731509d.tar.gz |
Initialize buff, fix valgrind warning about use of uninitialized bytes.
-rw-r--r-- | libarchive/test/test_sparse_basic.c | 1 |
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) |