diff options
Diffstat (limited to 'render/directory.c')
-rw-r--r-- | render/directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/directory.c b/render/directory.c index 1449b46f0..c64d05a77 100644 --- a/render/directory.c +++ b/render/directory.c @@ -101,8 +101,8 @@ bool directory_convert(struct content *c, int width, int height) { return false; } while ((entry = readdir(parent)) != NULL) { - if ((entry->d_ino == 0) || (!strcmp(entry->d_name, ".")) || - (!strcmp(entry->d_name, ".."))) + if (!strcmp(entry->d_name, ".") || + !strcmp(entry->d_name, "..")) continue; snprintf(buffer, sizeof(buffer), "<a href=\"%s/%s\">%s</a>\n", |