cleaner table

This commit is contained in:
rsc 2007-08-08 09:43:07 +00:00
parent 19b1f63813
commit c16e0916a7

2
proc.c
View file

@ -437,7 +437,7 @@ procdump(void)
p = &proc[i];
if(p->state == UNUSED)
continue;
if(p->state >= 0 && p->state < NELEM(states))
if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
state = states[p->state];
else
state = "???";