From a93cda3aefdc7f73d53a828c117f65dcaea5f466 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 26 Dec 2015 09:56:53 +0100 Subject: [PATCH] Move current_savestate_dir to set_paths_redirect as local variable --- retroarch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroarch.c b/retroarch.c index cba4fe3431..9cd566290d 100644 --- a/retroarch.c +++ b/retroarch.c @@ -98,7 +98,6 @@ enum RA_OPT_MAX_FRAMES }; -static char current_savestate_dir[PATH_MAX_LENGTH]; static char current_savefile_dir[PATH_MAX_LENGTH]; static char error_string[PATH_MAX_LENGTH]; @@ -353,6 +352,7 @@ const char *rarch_get_current_savefile_dir(void) static void set_paths_redirect(const char *path) { + char current_savestate_dir[PATH_MAX_LENGTH]; uint32_t global_library_name_hash = 0; bool check_global_library_name_hash = false; global_t *global = global_get_ptr();