mirror of
https://github.com/minetest/minetest.git
synced 2025-02-20 03:43:47 +01:00
Fix RUN_IN_PLACE broken due to invalid usage of assert
This commit is contained in:
@ -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, '/');
|
||||
|
||||
|
Reference in New Issue
Block a user