aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-10-09 09:12:03 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-10-09 09:12:03 -0500
commite50431aa22e3b894ac107affd358052c20a899f7 (patch)
treea8a10e0d23e9b91d2753ec0e47347c193eb22dc7 /src/backend/utils/adt/jsonfuncs.c
parent36d4a50a886dacdb9e4a6716aca984edd3add83b (diff)
downloadpostgresql-e50431aa22e3b894ac107affd358052c20a899f7.tar.gz
postgresql-e50431aa22e3b894ac107affd358052c20a899f7.zip
Fix uninitialized-variable bug.
For some reason, neither of the compilers I usually use noticed the uninitialized-variable problem I introduced in commit 7e2a18a9161fee7e. That's hardly a good enough excuse though. Committing with brown paper bag on head. In addition to putting the operations in the right order, move the declaration of "now" inside the loop; there's no need for it to be outside, and that does wake up older gcc enough to notice any similar future problem. Back-patch to 9.4; earlier versions lack the time-to-SIGKILL stanza so there's no bug.
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions