remove C99-ism

This commit is contained in:
Paul Gardner-Stephen 2018-04-18 16:45:26 +09:30
parent 504302aea1
commit ffeb25aa67

View File

@ -672,7 +672,8 @@ strbuf strbuf_append_quoted_string(strbuf sb, const char *str)
strbuf strbuf_append_token_or_quoted_string(strbuf sb, const char *str)
{
for (const char *s = str; *s; ++s)
const char *s;
for (s = str; *s; ++s)
if (!is_http_token(*s))
return strbuf_append_quoted_string(sb, str);
strbuf_puts(sb, str);