aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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, '/');