Fix an used-uninitialized warning (false positive).

This commit is contained in:
Qi Wang 2021-12-10 20:31:28 -08:00 committed by Qi Wang
parent e491cef9ab
commit 8b34a788b5

View File

@ -418,7 +418,8 @@ tcache_bin_flush_impl(tsd_t *tsd, tcache_t *tcache, cache_bin_t *cache_bin,
/* Deallocate whatever we can. */ /* Deallocate whatever we can. */
unsigned ndeferred = 0; unsigned ndeferred = 0;
arena_dalloc_bin_locked_info_t dalloc_bin_info; /* Init only to avoid used-uninitialized warning. */
arena_dalloc_bin_locked_info_t dalloc_bin_info = {0};
if (small) { if (small) {
arena_dalloc_bin_locked_begin(&dalloc_bin_info, binind); arena_dalloc_bin_locked_begin(&dalloc_bin_info, binind);
} }