fix: remove gcc7.3.0 warning

This commit is contained in:
Chris 2018-11-02 20:47:19 +01:00
commit 12af27967b

View file

@ -63,8 +63,9 @@ int scandir (const char *dir,
if (err_no != 0) { if (err_no != 0) {
closedir (dirp); closedir (dirp);
if (nl) { if (nl) {
while (count > 0) while (count > 0) {
free (nl[--count]); free (nl[--count]);
}
free (nl); free (nl);
} }
return -1; return -1;