aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/FileUtil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/FileUtil.cc b/src/FbTk/FileUtil.cc
index b70eff3..26b6e78 100644
--- a/src/FbTk/FileUtil.cc
+++ b/src/FbTk/FileUtil.cc
@@ -62,7 +62,7 @@ bool FileUtil::isRegularFile(const char* filename) {
62 62
63bool FileUtil::isExecutable(const char* filename) { 63bool FileUtil::isExecutable(const char* filename) {
64 struct stat buf; 64 struct stat buf;
65 if (!filename || !stat(filename, &buf)) 65 if (!filename || stat(filename, &buf))
66 return false; 66 return false;
67 67
68 return buf.st_mode & S_IXUSR || 68 return buf.st_mode & S_IXUSR ||