diff options
| -rw-r--r-- | sys/src/cmd/mothra/rdhtml.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/rdhtml.c b/sys/src/cmd/mothra/rdhtml.c index 12f2a7f3f..76a2a2bcb 100644 --- a/sys/src/cmd/mothra/rdhtml.c +++ b/sys/src/cmd/mothra/rdhtml.c @@ -884,8 +884,10 @@ void plrdhtml(char *name, int fd, Www *dst){ if(str && *str){ free(g.state->name); g.state->name = strdup(str); - } else + } else if(g.state->link) str = g.state->link; + else + str = ""; pl_htmloutput(&g, 0, str, 0); free(g.state->link); g.state->link=0; |
