From eadeb88eceff5f9405ed2b0835a4bcdb2b6dae7a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 29 Dec 2020 12:58:55 +0100 Subject: [PATCH] Fixed a compile error on Unix. --- es-core/src/utils/FileSystemUtil.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/es-core/src/utils/FileSystemUtil.cpp b/es-core/src/utils/FileSystemUtil.cpp index a93e348f9..d16bcd0f8 100644 --- a/es-core/src/utils/FileSystemUtil.cpp +++ b/es-core/src/utils/FileSystemUtil.cpp @@ -183,6 +183,7 @@ namespace Utils return (_wgetcwd(tempWide, 512) ? getGenericPath(Utils::String::wideStringToString(tempWide)) : ""); #else + char temp[512]; return (getcwd(temp, 512) ? getGenericPath(temp) : ""); #endif }