process: Check for NULL return value.
This commit is contained in:
parent
0204fdbc65
commit
28af3d56ae
|
@ -239,7 +239,7 @@ edi_process_stats_by_pid(int pid)
|
|||
|
||||
for (int i = 0; i < pid_count; i++)
|
||||
{
|
||||
if (kp[i].p_pid == p->pid)
|
||||
if (kp && kp[i].p_pid == p->pid)
|
||||
p->numthreads++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue