From 06e3a9e76217ff382597a4e6ffc0d6654a03de06 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 31 Dec 2017 05:34:59 +0100 Subject: [PATCH] Avoid warning --- file_path_special.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/file_path_special.c b/file_path_special.c index 4b2b38ff79..7c24df4571 100644 --- a/file_path_special.c +++ b/file_path_special.c @@ -249,7 +249,6 @@ void fill_pathname_application_path(char *s, size_t len) #endif #ifdef _WIN32 DWORD ret; - char *str; wchar_t wstr[PATH_MAX_LENGTH] = {0}; #endif #ifdef __HAIKU__ @@ -269,7 +268,7 @@ void fill_pathname_application_path(char *s, size_t len) if (*wstr) { - str = utf16_to_utf8_string_alloc(wstr); + char *str = utf16_to_utf8_string_alloc(wstr); if (str) {