pgsql: Fix minor bugs in commit 30bf4689a96cd283af33edcdd6b7210df3f20cd - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix minor bugs in commit 30bf4689a96cd283af33edcdd6b7210df3f20cd
Date
Msg-id E1Xv8BJ-0008VT-Cz@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7b46ef1dad84c6d2954dcf426df5755f6968aa6a

Modified Files
--------------
src/interfaces/libpq/fe-connect.c |    3 +--
1 file changed, 1 insertion(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix minor bugs in commit 30bf4689a96cd283af33edcdd6b7210df3f20cd
Next
From: Tom Lane
Date:
Subject: pgsql: Fix minor bugs in commit 30bf4689a96cd283af33edcdd6b7210df3f20cd