mirror of https://github.com/xzeldon/htop.git
Handle situation instead of assuming it would never happen,
as it was seen out in the field and tested here.
This commit is contained in:
parent
649419abe5
commit
b25ac6b0f7
|
@ -477,7 +477,7 @@ void ProcessList_processEntries(ProcessList* this, char* dirname, int parent, fl
|
||||||
Process* prototype = this->prototype;
|
Process* prototype = this->prototype;
|
||||||
|
|
||||||
dir = opendir(dirname);
|
dir = opendir(dirname);
|
||||||
assert(dir != NULL);
|
if (!dir) return;
|
||||||
while ((entry = readdir(dir)) != NULL) {
|
while ((entry = readdir(dir)) != NULL) {
|
||||||
char* name = entry->d_name;
|
char* name = entry->d_name;
|
||||||
int pid;
|
int pid;
|
||||||
|
|
Loading…
Reference in New Issue