mirror of https://github.com/xzeldon/htop.git
parent
96858744b5
commit
4716a9857b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue