mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
merged fix to readlink ignored return value warning
This commit is contained in:
commit
c52fbcd8e9
1 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,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
|
||||||
readlink("/proc/self/exe", buf, BUFSIZ-1);
|
assert(readlink("/proc/self/exe", buf, BUFSIZ-1) != -1);
|
||||||
|
|
||||||
pathRemoveFile(buf, '/');
|
pathRemoveFile(buf, '/');
|
||||||
|
|
||||||
|
@ -200,7 +200,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
|
||||||
readlink("/proc/self/exe", buf, BUFSIZ-1);
|
assert(readlink("/proc/self/exe", buf, BUFSIZ-1) != -1);
|
||||||
|
|
||||||
pathRemoveFile(buf, '/');
|
pathRemoveFile(buf, '/');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue