提交 38f4d138 编写于 作者: R Rene Scharfe 提交者: 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: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 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
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册