hashmap: initialize the variable

gcc thinks this could be used uninitialized; cope with this.
This commit is contained in:
Edward Thomson
2026-05-10 21:09:14 +01:00
parent 51f6d90cb4
commit 523eaf8774

View File

@@ -107,6 +107,7 @@ typedef uint32_t git_hashmap_iter_t;
} \
GIT_INLINE(int) name##__idx(uint32_t *out, name *h, key_t key) \
{ \
*out = UINT32_MAX; \
if (h->n_buckets) { \
uint32_t k, i, last, mask, step = 0; \
GIT_ASSERT((h)->flags); \