projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd55b9c
)
Fix assertion condition in initializePaths()
author
kwolekr
<mirrorisim@gmail.com>
Tue, 29 Jan 2013 16:46:29 +0000
(11:46 -0500)
committer
kwolekr
<mirrorisim@gmail.com>
Wed, 6 Feb 2013 06:13:19 +0000
(
01:13
-0500)
src/porting.cpp
patch
|
blob
|
history
diff --git
a/src/porting.cpp
b/src/porting.cpp
index de15de9ce2309b200a59cb8e80c3e364a093cae1..f8a2cca5c242629d340ad03e6c6c139f987712cd 100644
(file)
--- 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, '/');