diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-04-11 13:49:12 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-04-11 13:49:13 -0700 |
| commit | 714be4c3acd6dc0b06a16ff96a35780f0c754ad0 (patch) | |
| tree | 54cfc4ecdcf0da56ecd1d8a2b838f737fbaf1bf9 | |
| parent | Merge branch 'ar/adjust-tests-for-the-index-fallout' (diff) | |
| parent | object-info: init request_info before reading arg (diff) | |
| download | git-714be4c3acd6dc0b06a16ff96a35780f0c754ad0.tar.gz git-714be4c3acd6dc0b06a16ff96a35780f0c754ad0.zip | |
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
| -rw-r--r-- | protocol-caps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol-caps.c b/protocol-caps.c index 874bc815b4..94c51862c5 100644 --- a/protocol-caps.c +++ b/protocol-caps.c @@ -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; |
