1
0
mirror of https://github.com/minetest/minetest.git synced 2024-11-17 07:50:26 +01:00

merged fix to readlink ignored return value warning

This commit is contained in:
Perttu Ahola 2011-05-17 00:00:01 +03:00
commit c52fbcd8e9

View File

@ -136,7 +136,7 @@ void initializePaths()
char buf[BUFSIZ];
memset(buf, 0, BUFSIZ);
// Get path to executable
readlink("/proc/self/exe", buf, BUFSIZ-1);
assert(readlink("/proc/self/exe", buf, BUFSIZ-1) != -1);
pathRemoveFile(buf, '/');
@ -200,7 +200,7 @@ void initializePaths()
char buf[BUFSIZ];
memset(buf, 0, BUFSIZ);
// Get path to executable
readlink("/proc/self/exe", buf, BUFSIZ-1);
assert(readlink("/proc/self/exe", buf, BUFSIZ-1) != -1);
pathRemoveFile(buf, '/');