]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Initialize buff, fix valgrind warning about use of uninitialized bytes.
authorAndres Mejia <amejia004@gmail.com>
Fri, 8 Feb 2013 01:04:40 +0000 (20:04 -0500)
committerAndres Mejia <amejia004@gmail.com>
Fri, 8 Feb 2013 01:04:40 +0000 (20:04 -0500)
libarchive/test/test_sparse_basic.c

index 67c51dd355c847ab56b82b8e1503c2147567c13e..1963aa4985dc4e70c0f761a56f4474b691529d51 100644 (file)
@@ -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)