Prevent another Coverity warning

This commit is contained in:
twinaphex 2017-02-21 21:17:17 +01:00
parent dc4464471e
commit 457b54149d

View File

@ -71,7 +71,7 @@ int string_parse_html_anchor(const char *line, char *link, char *name,
if (!*name)
{
const char *start = strstr(line, "\">");
const char *end = strstr(start, "</a>");
const char *end = start ? strstr(start, "</a>") : NULL;
if (!start || !end)
return 1;