From f324afc12ab6ad2d211be69bf042fb318c841334 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 31 Aug 2015 10:41:30 +0200 Subject: [PATCH] Cleanup --- libretro-common/file/dir_list.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libretro-common/file/dir_list.c b/libretro-common/file/dir_list.c index 69cac2d2cf..aad1651980 100644 --- a/libretro-common/file/dir_list.c +++ b/libretro-common/file/dir_list.c @@ -220,6 +220,7 @@ struct string_list *dir_list_new(const char *dir, const char *ext, bool include_dirs, bool include_compressed) { #if defined(_WIN32) + char path_buf[PATH_MAX_LENGTH]; WIN32_FIND_DATA ffd; HANDLE hFind = INVALID_HANDLE_VALUE; #elif defined(VITA) @@ -229,12 +230,9 @@ struct string_list *dir_list_new(const char *dir, DIR *directory = NULL; const struct dirent *entry = NULL; #endif - char path_buf[PATH_MAX_LENGTH]; struct string_list *ext_list = NULL; struct string_list *list = NULL; - (void)path_buf; - if (!(list = string_list_new())) return NULL;