mothra: fix nil crash on missing name/src attributes for source/video/audio/embed/frame/iframe

This commit is contained in:
cinap_lenrek 2015-08-01 16:18:02 +02:00
parent 71c57070c6
commit 660f54b198

View file

@ -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;