avoid broken print (Gabriel Diaz)
This commit is contained in:
parent
2b03bf696c
commit
dc6f9f033a
1 changed files with 2 additions and 0 deletions
|
|
@ -74,6 +74,8 @@ addrule(char *head, Word *tail, char *body, Word *ahead, int attr, int hline, ch
|
||||||
void
|
void
|
||||||
dumpr(char *s, Rule *r)
|
dumpr(char *s, Rule *r)
|
||||||
{
|
{
|
||||||
|
if(r == nil)
|
||||||
|
return;
|
||||||
Bprint(&bout, "%s: start=%ld shelltype=%s shellcmd=%s\n",
|
Bprint(&bout, "%s: start=%ld shelltype=%s shellcmd=%s\n",
|
||||||
s, r, r->shellt->name, wtos(r->shellcmd, ' '));
|
s, r, r->shellt->name, wtos(r->shellcmd, ' '));
|
||||||
for(; r; r = r->next){
|
for(; r; r = r->next){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue