process: Check for NULL return value.

This commit is contained in:
Alastair Poole 2019-12-16 21:13:14 +00:00
parent 0204fdbc65
commit 28af3d56ae
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}