]> 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>
Sat, 28 Feb 2015 15:46:10 +0000 (10:46 -0500)
commit60ff5de22aa4781f60cc141e2518c242c66d9235
tree039488e0db91ba5f87f05a8c833aa62de3d5a52a
parentecfe1a1889bc8640a4e3b8659d69ec1fd0e30b4a
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