From 8b34a788b52c6410ef68f2dab6ebbf5079a0660e Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Fri, 10 Dec 2021 20:31:28 -0800 Subject: [PATCH] Fix an used-uninitialized warning (false positive). --- src/tcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tcache.c b/src/tcache.c index 45d4e810..7138f883 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -418,7 +418,8 @@ tcache_bin_flush_impl(tsd_t *tsd, tcache_t *tcache, cache_bin_t *cache_bin, /* Deallocate whatever we can. */ 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) { arena_dalloc_bin_locked_begin(&dalloc_bin_info, binind); }