From cae2ee105505d45a92cf7abcc26f22890bce4202 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Tue, 16 Jun 2020 00:00:20 +0100 Subject: [PATCH] upload-pack: fix a sparse '0 as NULL pointer' warning Signed-off-by: Ramsay Jones Signed-off-by: Junio C Hamano --- upload-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload-pack.c b/upload-pack.c index 764265ec40..219e804dc1 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -1254,7 +1254,7 @@ void upload_pack(struct upload_pack_options *options) receive_needs(&data, &reader); if (data.want_obj.nr) { get_common_commits(&data, &reader); - create_pack_file(&data, 0); + create_pack_file(&data, NULL); } }