]> granicus.if.org Git - postgresql/commit
Suppress uninitialized-variable warning from less-bright compilers.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Feb 2015 23:19:22 +0000 (18:19 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Feb 2015 23:19:22 +0000 (18:19 -0500)
commitd61f1a93271b859938b6cdb301a367cdb8abf81c
treed7a7e053f463d7921b6a6dea049556e6df31acca
parenteaa5808e8ec4e82ce1a87103a6b6f687666e4e4c
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.
src/backend/utils/adt/jsonb.c