mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 22:03:07 +00:00
Fix shadowed variable usage.
Verified with EXTRA_CFLAGS=-Wshadow.
This commit is contained in:
@@ -26,14 +26,14 @@ TEST_BEGIN(test_idump) {
|
||||
bool active;
|
||||
void *p;
|
||||
|
||||
const char *prefix = TEST_PREFIX;
|
||||
const char *test_prefix = TEST_PREFIX;
|
||||
|
||||
test_skip_if(!config_prof);
|
||||
|
||||
active = true;
|
||||
|
||||
expect_d_eq(mallctl("prof.prefix", NULL, NULL, (void *)&prefix,
|
||||
sizeof(prefix)), 0,
|
||||
expect_d_eq(mallctl("prof.prefix", NULL, NULL, (void *)&test_prefix,
|
||||
sizeof(test_prefix)), 0,
|
||||
"Unexpected mallctl failure while overwriting dump prefix");
|
||||
|
||||
expect_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active,
|
||||
|
||||
Reference in New Issue
Block a user