aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/mk
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-10-12 03:18:22 +0000
committerrsc <devnull@localhost>2006-10-12 03:18:22 +0000
commitdc6f9f033a351714da8d1a7421eeb0d4848e5925 (patch)
tree6b22de1222001c9ccd637acfd9594b2c27f981ae /src/cmd/mk
parent2b03bf696ca055900ba587d010e731964f56ee3a (diff)
downloadplan9port-dc6f9f033a351714da8d1a7421eeb0d4848e5925.tar.gz
plan9port-dc6f9f033a351714da8d1a7421eeb0d4848e5925.tar.bz2
plan9port-dc6f9f033a351714da8d1a7421eeb0d4848e5925.zip
avoid broken print (Gabriel Diaz)
Diffstat (limited to 'src/cmd/mk')
-rw-r--r--src/cmd/mk/rule.c2
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){