From: Rene Scharfe Date: Sat, 18 Nov 2006 12:06:56 +0000 (+0100) Subject: sparse fix: Using plain integer as NULL pointer X-Git-Tag: v1.4.4.1~12 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=38f4d138ee101f3f238ffd43fac76f5b951516c1;p=git-core%2Fgit.git sparse fix: Using plain integer as NULL pointer Z_NULL is defined as 0, use a proper NULL pointer in its stead. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/archive-zip.c b/archive-zip.c index 28e7352e9..ae5572ae2 100644 --- a/archive-zip.c +++ b/archive-zip.c @@ -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)