fix: remove gcc7.3.0 warning

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

View file

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