summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-04-18 15:51:46 +0200
committercgzones <cgzones@googlemail.com>2021-04-21 20:58:28 +0200
commitbd689ab0d3cc2f6f8f12d53ab62f471a7d373e20 (patch)
treec03807d3c71ef8fae60cd638fd020745fcbb2c41 /ProcessList.c
parentd58c2f0606dd6d56d4b70f0367d6309ba3964a19 (diff)
Avoid implicit pointer to bool conversion in assignment
Improve readability
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 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);

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