Skip to content
Snippets Groups Projects
Commit c52fbcd8 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

merged fix to readlink ignored return value warning

parents 07ff1da6 f1bdc6b1
No related branches found
No related tags found
No related merge requests found
......@@ -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, '/');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment