From 7ef4f5a7177cd4f921fc540f8fc3f1e883fb44fd Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 23 Jul 2016 08:53:19 +0200 Subject: [PATCH] Cleanup --- command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command.c b/command.c index 1b92e8a417..d41f9d9ef4 100644 --- a/command.c +++ b/command.c @@ -1541,13 +1541,13 @@ static bool command_event_save_core_config(void) **/ void command_event_save_current_config(void) { - char msg[128]; settings_t *settings = config_get_ptr(); global_t *global = global_get_ptr(); - bool ret = false; if (settings->config_save_on_exit && !string_is_empty(global->path.config)) { + bool ret = false; + char msg[128] = {0}; /* Save last core-specific config to the default config location, * needed on consoles for core switching and reusing last good * config for new cores.