From e5f95ae89d1279e7987ff17cd6d61fb392760a94 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Mon, 28 Jan 2008 16:22:16 -0700 Subject: [PATCH] Fix pesky compiler warning on unused variable in linux. --- src/posix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }