mirror of https://github.com/xzeldon/htop.git
Avoid implicit pointer to bool conversion in assignment
Improve readability
This commit is contained in:
parent
d58c2f0606
commit
bd689ab0d3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue