From f287890d65ad36ca75bb71d05745693ae78b1490 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 14 Oct 2017 02:12:21 +0300 Subject: [PATCH] don'r check d_name d_name is not a pointer, just like clang warns --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.c b/menu.c index f1b1957..c145f26 100644 --- a/menu.c +++ b/menu.c @@ -937,7 +937,7 @@ static int scandir_filter(const struct dirent *ent) const char *ext; int i; - if (ent == NULL || ent->d_name == NULL) + if (ent == NULL) return 0; switch (ent->d_type) { -- 2.39.5