mothra: fix nil crash on missing name/src attributes for source/video/audio/embed/frame/iframe
This commit is contained in:
parent
71c57070c6
commit
660f54b198
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue