diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/theme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/theme.c b/gtk/theme.c index 8612c3948..e7f292b88 100644 --- a/gtk/theme.c +++ b/gtk/theme.c @@ -111,8 +111,8 @@ static bool nsgtk_theme_verify(const char *themename) buf); /* check every directory */ if (access(testfile, R_OK) == 0) { - stat(testfile, &sta); - if (S_ISDIR(sta.st_mode)) { + if ((stat(testfile, &sta) == 0) && + (S_ISDIR(sta.st_mode))) { buf[strlen(buf)] = '\n'; /* "\0\0" -> "\n\0" */ strcat(filecontent, buf); |