From a6aa0b8e0cf65099fbe10bfa73b75afe279450c7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 23 Jul 2016 14:29:57 +0200 Subject: [PATCH] Cleanups --- configuration.c | 2 +- runloop.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configuration.c b/configuration.c index 91db35de13..74e67498fb 100644 --- a/configuration.c +++ b/configuration.c @@ -3248,5 +3248,5 @@ const char *config_get_active_path(void) void config_free_state(void) { - *path_core_specific_config = '\0'; + path_core_specific_config[0] = '\0'; } diff --git a/runloop.c b/runloop.c index 7cc3beb908..d0bbaca836 100644 --- a/runloop.c +++ b/runloop.c @@ -1138,7 +1138,8 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data) const struct retro_variable *vars = (const struct retro_variable*)data; - if (string_is_empty(options_path) && *global->path.config) + if (string_is_empty(options_path) + && !string_is_empty(global->path.config)) { fill_pathname_resolve_relative(buf, global->path.config, file_path_str(FILE_PATH_CORE_OPTIONS_CONFIG), sizeof(buf));