diff --git a/src/posix.cpp b/src/posix.cpp index dbc4bd5886..c0773a46df 100644 --- a/src/posix.cpp +++ b/src/posix.cpp @@ -135,7 +135,8 @@ pathOfExecutable(System* s, const char** retBuf, unsigned* size) abort(); } #else - *size = 0; + if (s) + *size = 0; *retBuf = NULL; #endif }