projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24d08f3
)
Remove duplicate variable declaration in fe-connect.c
author
Michael Paquier
<
[email protected]
>
Fri, 22 Feb 2019 04:16:47 +0000
(13:16 +0900)
committer
Michael Paquier
<
[email protected]
>
Fri, 22 Feb 2019 04:16:47 +0000
(13:16 +0900)
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
src/interfaces/libpq/fe-connect.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/libpq/fe-connect.c
b/src/interfaces/libpq/fe-connect.c
index f29202db5f99b24f8040f69bddf893169a8f233a..c96a52bb1b85f793dae425a06a4ca84f974b70d0 100644
(file)
--- 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);