From 0edd97d5dbda4202aa015e750c2b4508d9408681 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 21 May 2020 20:04:22 +0200 Subject: [PATCH] file_path.c) Cleanup --- libretro-common/file/file_path.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index a6a464d786..62a3eceaf2 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -621,10 +621,6 @@ const char *path_basename(const char *path) **/ bool path_is_absolute(const char *path) { -#if defined(__wiiu__) || defined(VITA) - const char *seperator = NULL; -#endif - if (string_is_empty(path)) return false; @@ -639,9 +635,11 @@ bool path_is_absolute(const char *path) string_starts_with(path + 1, ":\\")) return true; #elif defined(__wiiu__) || defined(VITA) - seperator = strchr(path, ':'); - if (seperator && (seperator[1] == '/')) - return true; + { + const char *seperator = strchr(path, ':'); + if (seperator && (seperator[1] == '/')) + return true; + } #endif return false;