From 4925f11b37c30de7e6beed429214ea6038a9dc93 Mon Sep 17 00:00:00 2001 From: Joe Conway Date: Thu, 3 Feb 2022 16:08:54 -0500 Subject: [PATCH] Remove C99 use of loop initial declaration --- parseutils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parseutils.c b/parseutils.c index fcdd7ae..2de134b 100644 --- a/parseutils.c +++ b/parseutils.c @@ -383,7 +383,8 @@ parse_quoted_string(char **source) while (*src) { char c = *src; - pg_wchar cp = 0; + pg_wchar cp = 0; + int i; if (lastSlash) { @@ -439,7 +440,7 @@ parse_quoted_string(char **source) case 'u': case 'U': /* unicode code point handling */ - for (int i = 1; i <= (c == 'u' ? 4 : 8); i++) + for (i = 1; i <= (c == 'u' ? 4 : 8); i++) { if (is_hex_digit(src[i])) {