From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix uninitialized-variable bug. |
Date: | 2015-10-09 14:12:17 |
Message-ID: | E1ZkYPB-00010A-8A@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/94f5246ce1cac2b3fb976bed5792f39e01a28d08
Modified Files
--------------
src/backend/postmaster/postmaster.c | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2015-10-09 14:49:17 | pgsql: Handle append_rel_list in expand_security_qual |
Previous Message | Robert Haas | 2015-10-08 17:27:09 | pgsql: Fix typo in docs. |