diff --git a/libretro-common/net/net_http_parse.c b/libretro-common/net/net_http_parse.c index 1c3131b9e8..69b80f6e37 100644 --- a/libretro-common/net/net_http_parse.c +++ b/libretro-common/net/net_http_parse.c @@ -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, ""); + const char *end = start ? strstr(start, "") : NULL; if (!start || !end) return 1;