Commit d61f1a93 authored by Tom Lane's avatar Tom Lane

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 654809e7.
parent eaa5808e
...@@ -424,7 +424,7 @@ JsonbToCString(StringInfo out, JsonbContainer *in, int estimated_len) ...@@ -424,7 +424,7 @@ JsonbToCString(StringInfo out, JsonbContainer *in, int estimated_len)
{ {
bool first = true; bool first = true;
JsonbIterator *it; JsonbIterator *it;
JsonbIteratorToken type; JsonbIteratorToken type = WJB_DONE;
JsonbValue v; JsonbValue v;
int level = 0; int level = 0;
bool redo_switch = false; bool redo_switch = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment