From b25ac6b0f787eb925690c6ee48a1f0cf6dc2d560 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 26 Oct 2006 23:06:52 +0000 Subject: Handle situation instead of assuming it would never happen, as it was seen out in the field and tested here. --- ProcessList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3