commit dc6f9f033a351714da8d1a7421eeb0d4848e5925 from: rsc date: Thu Oct 12 03:18:22 2006 UTC avoid broken print (Gabriel Diaz) commit - 2b03bf696ca055900ba587d010e731964f56ee3a commit + dc6f9f033a351714da8d1a7421eeb0d4848e5925 blob - 439d611483ef1c1f220d0ddd32b0edfa21edfdba blob + 30728197e7eea5b6506cf32a1441399f5d261588 --- src/cmd/mk/rule.c +++ src/cmd/mk/rule.c @@ -74,6 +74,8 @@ addrule(char *head, Word *tail, char *body, Word *ahea void dumpr(char *s, Rule *r) { + if(r == nil) + return; Bprint(&bout, "%s: start=%ld shelltype=%s shellcmd=%s\n", s, r, r->shellt->name, wtos(r->shellcmd, ' ')); for(; r; r = r->next){