plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit dc6f9f033a351714da8d1a7421eeb0d4848e5925
parent 2b03bf696ca055900ba587d010e731964f56ee3a
Author: rsc <devnull@localhost>
Date:   Thu, 12 Oct 2006 03:18:22 +0000

avoid broken print (Gabriel Diaz)

Diffstat:
Msrc/cmd/mk/rule.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cmd/mk/rule.c b/src/cmd/mk/rule.c @@ -74,6 +74,8 @@ addrule(char *head, Word *tail, char *body, Word *ahead, int attr, int hline, ch 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){