]> granicus.if.org Git - postgresql/commit
Fix minor bugs in commit 30bf4689a96cd283af33edcdd6b7210df3f20cd8 et al.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Nov 2014 17:21:01 +0000 (12:21 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Nov 2014 17:21:01 +0000 (12:21 -0500)
commit85a6ad3cdf320ceef5671381bd4caafe984d8e6b
tree5921f9d29384c6fe80012d293efc32d23b4460a9
parent6a694bbab20395603d751c9575746a753678aa5c
Fix minor bugs in commit 30bf4689a96cd283af33edcdd6b7210df3f20cd8 et al.

Coverity complained that the "else" added to fillPGconn() was unreachable,
which it was.  Remove the dead code.  In passing, rearrange the tests so as
not to bother trying to fetch values for options that can't be assigned.

Pre-9.3 did not have that issue, but it did have a "return" that should be
"goto oom_error" to ensure that a suitable error message gets filled in.
src/interfaces/libpq/fe-connect.c