Commit 4716a985 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Fix logic for skipping non-numeric directories.

Closes #42.
parent 96858744
......@@ -741,8 +741,9 @@ static bool ProcessList_processEntries(ProcessList* this, const char* dirname, P
}
// Just skip all non-number directories.
if (name[0] <= '0' || name[0] >= '9')
if (name[0] < '0' || name[0] > '9') {
continue;
}
// filename is a number: process directory
int pid = atoi(name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment