]> git.ipfire.org Git - thirdparty/git.git/commitdiff
upload-pack: fix a sparse '0 as NULL pointer' warning
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Mon, 15 Jun 2020 23:00:20 +0000 (00:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jun 2020 20:22:40 +0000 (13:22 -0700)
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c

index 764265ec404f537beaf61132e6f3cd7f898173b6..219e804dc13bea3af0a8b14f85658cc2d2cac3af 100644 (file)
@@ -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);
                }
        }