mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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;
|
||||
|
||||
dir = opendir(dirname);
|
||||
assert(dir != NULL);
|
||||
if (!dir) return;
|
||||
while ((entry = readdir(dir)) != NULL) {
|
||||
char* name = entry->d_name;
|
||||
int pid;
|
||||
|
Loading…
Reference in New Issue
Block a user