summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 3a19d92..96f96d9 100644
--- a/proc.c
+++ b/proc.c
@@ -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 = "???";