summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/host/premake.c
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/genie/src/host/premake.c')
-rw-r--r--3rdparty/genie/src/host/premake.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/3rdparty/genie/src/host/premake.c b/3rdparty/genie/src/host/premake.c
index a8ad1140912..52d365a5848 100644
--- a/3rdparty/genie/src/host/premake.c
+++ b/3rdparty/genie/src/host/premake.c
@@ -130,6 +130,8 @@ int premake_locate(lua_State* L, const char* argv0)
char buffer[PATH_MAX];
const char* path = NULL;
+ memset(buffer, 0, PATH_MAX);
+
#if PLATFORM_WINDOWS
DWORD len = GetModuleFileName(NULL, buffer, PATH_MAX);
if (len > 0)