From: notaz Date: Fri, 13 Oct 2017 23:12:21 +0000 (+0300) Subject: don'r check d_name X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f287890d65ad36ca75bb71d05745693ae78b1490;p=libpicofe.git don'r check d_name d_name is not a pointer, just like clang warns --- 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) {