From 5a7685de0e3dd900feb7f08eee8df67813021647 Mon Sep 17 00:00:00 2001 From: Daan Date: Sun, 19 Dec 2021 10:37:10 -0800 Subject: [PATCH] for safety do not print illegal environment values --- src/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index 00d93369..24668c5c 100644 --- a/src/options.c +++ b/src/options.c @@ -564,11 +564,11 @@ static void mi_option_init(mi_option_desc_t* desc) { // if the 'mimalloc_verbose' env var has a bogus value we'd never know // (since the value defaults to 'off') so in that case briefly enable verbose desc->value = 1; - _mi_warning_message("environment option mimalloc_%s has an invalid value: %s\n", desc->name, buf); + _mi_warning_message("environment option mimalloc_%s has an invalid value.\n", desc->name ); desc->value = 0; } else { - _mi_warning_message("environment option mimalloc_%s has an invalid value: %s\n", desc->name, buf); + _mi_warning_message("environment option mimalloc_%s has an invalid value.\n", desc->name ); } } }