From bbb7871028132d7c147e880f9632d7f99cc18434 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sat, 23 Apr 2016 22:50:46 +0200 Subject: [PATCH] Why exactly are we iterating over this string one character per frame? --- libretro-common/net/net_http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libretro-common/net/net_http.c b/libretro-common/net/net_http.c index ecdeccf88e..df6ad646af 100644 --- a/libretro-common/net/net_http.c +++ b/libretro-common/net/net_http.c @@ -215,10 +215,9 @@ bool net_http_connection_iterate(struct http_connection_t *conn) { if (!conn) return false; - if (*conn->scan != '/' && *conn->scan != ':' && *conn->scan != '\0') + while (*conn->scan != '/' && *conn->scan != ':' && *conn->scan != '\0') { conn->scan++; - return false; } return true; }