1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix RUN_IN_PLACE broken due to invalid usage of assert

This commit is contained in:
sapier 2015-03-07 15:22:35 +01:00
parent ced6d20295
commit 9da99efca2

View file

@ -375,7 +375,7 @@ void initializePaths()
char buf[BUFSIZ]; char buf[BUFSIZ];
memset(buf, 0, BUFSIZ); memset(buf, 0, BUFSIZ);
// Get path to executable // 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, '/'); pathRemoveFile(buf, '/');