diff options
Diffstat (limited to 'libbb/procps.c')
-rw-r--r-- | libbb/procps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/procps.c b/libbb/procps.c index ee4f5e53f..017710ff4 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -119,7 +119,8 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags) | |||
119 | free_procps_scan(sp); | 119 | free_procps_scan(sp); |
120 | return NULL; | 120 | return NULL; |
121 | } | 121 | } |
122 | if (safe_strtou(entry->d_name, &pid)) | 122 | pid = bb_strtou(entry->d_name, NULL, 10); |
123 | if (errno) | ||
123 | continue; | 124 | continue; |
124 | 125 | ||
125 | /* After this point we have to break, not continue | 126 | /* After this point we have to break, not continue |