diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-10-09 09:12:03 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-10-09 09:12:03 -0500 |
commit | 94f5246ce1cac2b3fb976bed5792f39e01a28d08 (patch) | |
tree | 09e23ff1d20a2310c363747fb55506c0569cd926 /src/backend/tcop/postgres.c | |
parent | 41562b14bb9085378957f9a08de4518ae049ffca (diff) | |
download | postgresql-94f5246ce1cac2b3fb976bed5792f39e01a28d08.tar.gz postgresql-94f5246ce1cac2b3fb976bed5792f39e01a28d08.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/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions