Fix assertion condition in initializePaths()
authorkwolekr <mirrorisim@gmail.com>
Tue, 29 Jan 2013 16:46:29 +0000 (11:46 -0500)
committerkwolekr <mirrorisim@gmail.com>
Wed, 6 Feb 2013 06:13:19 +0000 (01:13 -0500)
src/porting.cpp

index de15de9ce2309b200a59cb8e80c3e364a093cae1..f8a2cca5c242629d340ad03e6c6c139f987712cd 100644 (file)
@@ -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, '/');