diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-11 20:17:07 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-11 20:17:07 -0300 |
commit | 4716a9857b79874f7aea4e6ee405444f59999a98 (patch) | |
tree | 425287aac54e1b3645199bf55c2c28e066f5f61a /ProcessList.c | |
parent | 96858744b577c6ee391d9e5372d8cf40ef3cc2ae (diff) |
Fix logic for skipping non-numeric directories.
Closes #42.
Diffstat (limited to 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c index 813b9775..b8a2991b 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -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); |