mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 21:27:57 +00:00
remove C99-ism
This commit is contained in:
parent
504302aea1
commit
ffeb25aa67
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user