Avoid implicit pointer to bool conversion in assignment

Improve readability
This commit is contained in:
Christian Göttsche 2021-04-18 15:51:46 +02:00 committed by cgzones
parent d58c2f0606
commit bd689ab0d3
1 changed files with 1 additions and 1 deletions

View File

@ -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);