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:
Hisham Muhammad 2006-10-26 23:06:52 +00:00
parent 649419abe5
commit b25ac6b0f7

View File

@ -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;