From: Ramsay Jones Date: Mon, 15 Jun 2020 23:00:20 +0000 (+0100) Subject: upload-pack: fix a sparse '0 as NULL pointer' warning X-Git-Tag: v2.28.0-rc0~37^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cae2ee105505d45a92cf7abcc26f22890bce4202;p=thirdparty%2Fgit.git upload-pack: fix a sparse '0 as NULL pointer' warning Signed-off-by: Ramsay Jones Signed-off-by: Junio C Hamano --- 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); } }