]> granicus.if.org Git - postgresql/commit
Fix uninitialized-variable bug.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Oct 2015 14:12:03 +0000 (09:12 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Oct 2015 14:12:03 +0000 (09:12 -0500)
commit15e9457bbb3e6ba2485f88252e2f522c069f26c5
treea777081fe004eed59d0cd874e84317a7fff0b166
parent56f9d916327b3e256d655db278b62b850c931d91
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.
src/backend/postmaster/postmaster.c