Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd61f1a9

Browse files
committed
Suppress uninitialized-variable warning from less-bright compilers.
The type variable must get set on first iteration of the while loop,but there are reasonably modern gcc versions that don't realize that.Initialize it with a dummy value. This undoes a removal of initializationin commit654809e.
1 parenteaa5808 commitd61f1a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/adt/jsonb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ JsonbToCString(StringInfo out, JsonbContainer *in, int estimated_len)
424424
{
425425
boolfirst= true;
426426
JsonbIterator*it;
427-
JsonbIteratorTokentype;
427+
JsonbIteratorTokentype=WJB_DONE;
428428
JsonbValuev;
429429
intlevel=0;
430430
boolredo_switch= false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp