avoid broken print (Gabriel Diaz)
This commit is contained in:
parent
2b03bf696c
commit
dc6f9f033a
@ -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…
Reference in New Issue
Block a user