From: rsc Date: Wed, 8 Aug 2007 09:43:07 +0000 (+0000) Subject: cleaner table X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=c16e0916a7d82d8001289943294ef727ffe0a3e8;p=cs3210-lab0.git cleaner table --- 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 = "???";