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.
free(conn->sslmode);
conn->sslmode = strdup("require");
if (!conn->sslmode)
- return false;
+ goto oom_error;
}
#endif
#if defined(KRB5) || defined(ENABLE_GSS) || defined(ENABLE_SSPI)
conn->pgpass = strdup(DefaultPassword);
if (!conn->pgpass)
goto oom_error;
-
}
else
conn->dot_pgpass_used = true;