summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2015-03-07 15:22:35 +0100
committersapier <Sapier at GMX dot net>2015-03-07 15:22:35 +0100
commit9da99efca226c377d3bc2914561edffd812a9c1a (patch)
treefbec058f8f326a7fc37c402a99ac3fe6cd39543c
parentced6d20295a8263757d57c02a07ffcb66688a163 (diff)
downloadminetest-9da99efca226c377d3bc2914561edffd812a9c1a.tar.gz
minetest-9da99efca226c377d3bc2914561edffd812a9c1a.tar.bz2
minetest-9da99efca226c377d3bc2914561edffd812a9c1a.zip
Fix RUN_IN_PLACE broken due to invalid usage of assert
-rw-r--r--src/porting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/porting.cpp b/src/porting.cpp
index 6d0ab78c4..64a51c7f5 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -375,7 +375,7 @@ void initializePaths()
char buf[BUFSIZ];
memset(buf, 0, BUFSIZ);
// Get path to executable
- assert(readlink("/proc/self/exe", buf, BUFSIZ-1) != -1);
+ FATAL_ERROR_IF(readlink("/proc/self/exe", buf, BUFSIZ-1) == -1, "Failed to get cwd");
pathRemoveFile(buf, '/');