Why exactly are we iterating over this string one character per frame?

This commit is contained in:
Alcaro 2016-04-23 22:50:46 +02:00
parent dcd5391a75
commit bbb7871028

View File

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