Skip to content

Commit

Permalink
Remove C99 use of loop initial declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jconway committed Feb 3, 2022
1 parent 8a95bb8 commit 4925f11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions parseutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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]))
{
Expand Down

0 comments on commit 4925f11

Please sign in to comment.