don'r check d_name

d_name is not a pointer, just like clang warns
This commit is contained in:
notaz 2017-10-14 02:12:21 +03:00
parent 448ec62f85
commit f287890d65

2
menu.c
View file

@ -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) {