Merge branch 'jx/cap-object-info-uninitialized-fix'

Correct use of an uninitialized structure member.

* jx/cap-object-info-uninitialized-fix:
  object-info: init request_info before reading arg
This commit is contained in:
Junio C Hamano 2023-04-11 13:49:12 -07:00
commit 714be4c3ac

View File

@ -79,7 +79,7 @@ static void send_info(struct repository *r, struct packet_writer *writer,
int cap_object_info(struct repository *r, struct packet_reader *request)
{
struct requested_info info;
struct requested_info info = { 0 };
struct packet_writer writer;
struct string_list oid_str_list = STRING_LIST_INIT_DUP;