summaryrefslogtreecommitdiff
path: root/src/porting.cpp
diff options
context:
space:
mode:
authorkwolekr <mirrorisim@gmail.com>2013-01-29 11:46:29 -0500
committerkwolekr <mirrorisim@gmail.com>2013-02-06 01:13:19 -0500
commitf148ae58c3c0e2b6d6c22c913492193021cbc4c3 (patch)
treedff8456d2d4aec6e1a44cf1ac4bafb0a942b51e8 /src/porting.cpp
parentbd55b9cc0ff37d97be02ac3b3e49ef29c6917101 (diff)
downloadminetest-f148ae58c3c0e2b6d6c22c913492193021cbc4c3.tar.gz
minetest-f148ae58c3c0e2b6d6c22c913492193021cbc4c3.tar.bz2
minetest-f148ae58c3c0e2b6d6c22c913492193021cbc4c3.zip
Fix assertion condition in initializePaths()
Diffstat (limited to 'src/porting.cpp')
-rw-r--r--src/porting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/porting.cpp b/src/porting.cpp
index de15de9ce..f8a2cca5c 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, '/');