mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Prevent another Coverity warning
This commit is contained in:
parent
dc4464471e
commit
457b54149d
@ -71,7 +71,7 @@ int string_parse_html_anchor(const char *line, char *link, char *name,
|
|||||||
if (!*name)
|
if (!*name)
|
||||||
{
|
{
|
||||||
const char *start = strstr(line, "\">");
|
const char *start = strstr(line, "\">");
|
||||||
const char *end = strstr(start, "</a>");
|
const char *end = start ? strstr(start, "</a>") : NULL;
|
||||||
|
|
||||||
if (!start || !end)
|
if (!start || !end)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user