diff --git a/src/FbTk/FileUtil.cc b/src/FbTk/FileUtil.cc index b70eff30..26b6e78c 100644 --- a/src/FbTk/FileUtil.cc +++ b/src/FbTk/FileUtil.cc @@ -62,7 +62,7 @@ bool FileUtil::isRegularFile(const char* filename) { bool FileUtil::isExecutable(const char* filename) { struct stat buf; - if (!filename || !stat(filename, &buf)) + if (!filename || stat(filename, &buf)) return false; return buf.st_mode & S_IXUSR ||