mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Fix an used-uninitialized warning (false positive).
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user