]> git.lizzy.rs Git - minetest.git/blobdiff - src/porting.cpp
Fix EmergeThread hang on exit
[minetest.git] / src / porting.cpp
index de15de9ce2309b200a59cb8e80c3e364a093cae1..7ad557833025bd719bffe9fe1db2cbbe3cc155f8 100644 (file)
@@ -1,6 +1,6 @@
 /*
-Minetest-c55
-Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -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, '/');