Skip to content

Commit 5a7685d

Browse files
committed
for safety do not print illegal environment values
1 parent 4808ef7 commit 5a7685d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/options.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,11 @@ static void mi_option_init(mi_option_desc_t* desc) {
564564
// if the 'mimalloc_verbose' env var has a bogus value we'd never know
565565
// (since the value defaults to 'off') so in that case briefly enable verbose
566566
desc->value = 1;
567-
_mi_warning_message("environment option mimalloc_%s has an invalid value: %s\n", desc->name, buf);
567+
_mi_warning_message("environment option mimalloc_%s has an invalid value.\n", desc->name );
568568
desc->value = 0;
569569
}
570570
else {
571-
_mi_warning_message("environment option mimalloc_%s has an invalid value: %s\n", desc->name, buf);
571+
_mi_warning_message("environment option mimalloc_%s has an invalid value.\n", desc->name );
572572
}
573573
}
574574
}

0 commit comments

Comments
 (0)