fix: remove gcc7.3.0 warning
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user