upload-pack: fix a sparse '0 as NULL pointer' warning

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ramsay Jones 2020-06-16 00:00:20 +01:00 committed by Junio C Hamano
parent dd4b732df7
commit cae2ee1055
1 changed files with 1 additions and 1 deletions

View 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);
}
}