diff --git a/proc.c b/proc.c index 0c7f119..3ee2f0a 100644 --- a/proc.c +++ b/proc.c @@ -442,7 +442,7 @@ procdump(void) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ if(p->state == UNUSED) continue; - if(p->state >= 0 && p->state < NELEM(states) && states[p->state]) + if(p->state && p->state < NELEM(states) && states[p->state]) state = states[p->state]; else state = "???";