summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2006-10-26 23:06:52 +0000
committerHisham Muhammad <hisham@gobolinux.org>2006-10-26 23:06:52 +0000
commitb25ac6b0f787eb925690c6ee48a1f0cf6dc2d560 (patch)
tree5d76e1b18ef6cda83565b20628735737707e6548
parent649419abe528d1ed304e8d23eda8828463aff7ba (diff)
Handle situation instead of assuming it would never happen,
as it was seen out in the field and tested here.
-rw-r--r--ProcessList.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 8a471706..a6f43769 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy