diff options
-rw-r--r-- | src/cmd/mk/rule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/mk/rule.c b/src/cmd/mk/rule.c index 439d6114..30728197 100644 --- 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){ |