diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-07-08 23:14:58 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-08 23:14:59 +0300 |
commit | 1d38852b115983a3bd83b2ae61398826f86b5948 (patch) | |
tree | 2d0c55a86c66e3d10e971967fada4a4c987e85b3 /builtin | |
parent | 7e242013652525e6d8e0ee73bfb85ecaeab700ea (diff) | |
parent | 4dbc55e87da408e746888d0e65064a87bf8eb8b5 (diff) |
Merge branch 'ah/uninitialized-reads-fix'
Make the codebase MSAN clean.
* ah/uninitialized-reads-fix:
builtin/checkout--worker: zero-initialise struct to avoid MSAN complaints
split-index: use oideq instead of memcmp to compare object_id's
bulk-checkin: make buffer reuse more obvious and safer
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/checkout--worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout--worker.c b/builtin/checkout--worker.c index 289a9b8f89..fb9fd13b73 100644 --- a/builtin/checkout--worker.c +++ b/builtin/checkout--worker.c @@ -53,7 +53,7 @@ static void packet_to_pc_item(const char *buffer, int len, static void report_result(struct parallel_checkout_item *pc_item) { - struct pc_item_result res; + struct pc_item_result res = { 0 }; size_t size; res.id = pc_item->id; |