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 <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
Rene Scharfe committed
Nov 18, 2006 at 13:06 UTC
38f4d138ee101f3f238ffd43fac76f5b951516c1
1 file changed
+1
-1
archive-zip.c
+1
-1
@@ -160,7 +160,7 @@ static int write_zip_entry(const unsigned char *sha1,
160
void *buffer = NULL;
161
void *deflated = NULL;
162
163
- crc = crc32(0, Z_NULL, 0);
163
+ crc = crc32(0, NULL, 0);
164
165
path = construct_path(base, baselen, filename, S_ISDIR(mode), &pathlen);
166
if (verbose)