summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2019-02-22 04:16:47 +0000
committerMichael Paquier2019-02-22 04:16:47 +0000
commit554ca6954ecbfc54e7159a609b5ffc7921670185 (patch)
treea6c0a5e9dc19fecdf38932ca41856f6a84a01d02
parent24d08f3c0a1f04ea8bac68eb3aa3b069680e43f5 (diff)
Remove duplicate variable declaration in fe-connect.c
The same variables are declared twice when checking if a connection is writable, which is useless. Author: Haribabu Kommi Discussion: https://postgr.es/m/CAJrrPGf=rcALB54w_Tg1_hx3y+cgSWaERY-uYSQzGc3Zt5XN4g@mail.gmail.com
-rw-r--r--src/interfaces/libpq/fe-connect.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index f29202db5f..c96a52bb1b 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -3349,9 +3349,6 @@ keep_going: /* We will come back to here until there is
if (strncmp(val, "on", 2) == 0)
{
/* Not writable; fail this connection. */
- const char *displayed_host;
- const char *displayed_port;
-
PQclear(res);
restoreErrorMessage(conn, &savedMessage);