diff --git a/ProcessList.c b/ProcessList.c index fa8ff4a4..4d4a7ca1 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -564,7 +564,7 @@ void ProcessList_rebuildPanel(ProcessList* this) { Process* ProcessList_getProcess(ProcessList* this, pid_t pid, bool* preExisting, Process_New constructor) { Process* proc = (Process*) Hashtable_get(this->processTable, pid); - *preExisting = proc; + *preExisting = proc != NULL; if (proc) { assert(Vector_indexOf(this->processes, proc, Process_pidCompare) != -1); assert(proc->pid == pid);