Fix logic for skipping non-numeric directories.

Closes #42.
This commit is contained in:
Hisham Muhammad 2014-04-11 20:17:07 -03:00
parent 96858744b5
commit 4716a9857b
1 changed files with 2 additions and 1 deletions

View File

@ -741,8 +741,9 @@ static bool ProcessList_processEntries(ProcessList* this, const char* dirname, P
} }
// Just skip all non-number directories. // Just skip all non-number directories.
if (name[0] <= '0' || name[0] >= '9') if (name[0] < '0' || name[0] > '9') {
continue; continue;
}
// filename is a number: process directory // filename is a number: process directory
int pid = atoi(name); int pid = atoi(name);