Commit 38f4d138 authored by Rene Scharfe's avatar Rene Scharfe Committed by Junio C Hamano

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: default avatarRene Scharfe <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent a6e8a767
......@@ -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)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment