From: kwolekr Date: Tue, 29 Jan 2013 16:46:29 +0000 (-0500) Subject: Fix assertion condition in initializePaths() X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=f148ae58c3c0e2b6d6c22c913492193021cbc4c3;p=zefram%2Fminetest%2Fminetest_engine.git Fix assertion condition in initializePaths() --- diff --git a/src/porting.cpp b/src/porting.cpp index de15de9c..f8a2cca5 100644 --- a/src/porting.cpp +++ b/src/porting.cpp @@ -220,7 +220,7 @@ void initializePaths() //TODO: Test this code char buf[BUFSIZ]; uint32_t len = sizeof(buf); - assert(_NSGetExecutablePath(buf, &len) != 0); + assert(_NSGetExecutablePath(buf, &len) != -1); pathRemoveFile(buf, '/');