summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
Diffstat (limited to 'ProcessList.c')
-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;