Skip to content

Commit

Permalink
sparse fix: Using plain integer as NULL pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rene Scharfe authored and Junio C Hamano committed Nov 18, 2006
1 parent a6e8a76 commit 38f4d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive-zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 38f4d13

Please sign in to comment.