diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-04-18 15:51:46 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-04-21 20:58:28 +0200 |
commit | bd689ab0d3cc2f6f8f12d53ab62f471a7d373e20 (patch) | |
tree | c03807d3c71ef8fae60cd638fd020745fcbb2c41 /ProcessList.c | |
parent | d58c2f0606dd6d56d4b70f0367d6309ba3964a19 (diff) |
Avoid implicit pointer to bool conversion in assignment
Improve readability
Diffstat (limited to 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |