Skip to content

Commit

Permalink
upload-pack: fix a sparse '0 as NULL pointer' warning
Browse files Browse the repository at this point in the history
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
ramsay-jones authored and gitster committed Jun 17, 2020
1 parent dd4b732 commit cae2ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit cae2ee1

Please sign in to comment.