]> git.ipfire.org Git - thirdparty/git.git/commitdiff
sparse fix: Using plain integer as NULL pointer
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 18 Nov 2006 12:06:56 +0000 (13:06 +0100)
committerJunio C Hamano <junkio@cox.net>
Sat, 18 Nov 2006 19:40:07 +0000 (11:40 -0800)
Z_NULL is defined as 0, use a proper NULL pointer in its stead.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
archive-zip.c

index 28e7352e98eaa3bcbc3c86ce772bae35a605ceb2..ae5572ae208940637314b80e147dcfb03e76fee3 100644 (file)
@@ -160,7 +160,7 @@ static int write_zip_entry(const unsigned char *sha1,
        void *buffer = NULL;
        void *deflated = NULL;
 
-       crc = crc32(0, Z_NULL, 0);
+       crc = crc32(0, NULL, 0);
 
        path = construct_path(base, baselen, filename, S_ISDIR(mode), &pathlen);
        if (verbose)