diff options
author | Tom Lane | 2015-02-27 23:19:22 +0000 |
---|---|---|
committer | Tom Lane | 2015-02-27 23:19:22 +0000 |
commit | d61f1a93271b859938b6cdb301a367cdb8abf81c (patch) | |
tree | d7a7e053f463d7921b6a6dea049556e6df31acca /src/backend | |
parent | eaa5808e8ec4e82ce1a87103a6b6f687666e4e4c (diff) |
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 initialization
in commit 654809e770ce270c0bb9de726c5df1ab193d60f0.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/utils/adt/jsonb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/jsonb.c b/src/backend/utils/adt/jsonb.c index 79c31d0569d..5833401eb19 100644 --- a/src/backend/utils/adt/jsonb.c +++ b/src/backend/utils/adt/jsonb.c @@ -424,7 +424,7 @@ JsonbToCString(StringInfo out, JsonbContainer *in, int estimated_len) { bool first = true; JsonbIterator *it; - JsonbIteratorToken type; + JsonbIteratorToken type = WJB_DONE; JsonbValue v; int level = 0; bool redo_switch = false; |