diff --git a/src/porting.cpp b/src/porting.cpp index e8b135255..7c7ce48ea 100644 --- a/src/porting.cpp +++ b/src/porting.cpp @@ -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, '/');