diff options
author | Magnus Hagander <magnus@hagander.net> | 2010-04-28 13:46:23 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2010-04-28 13:46:23 +0000 |
commit | 81fb51732e97decb32f94ca46319440e612c9dfb (patch) | |
tree | 076abe45801f3afaa686e5948415ecc904a9eaf4 | |
parent | 8f9fe24b105d31a80a506cd7bfa963a43ee6c916 (diff) | |
download | postgresql-81fb51732e97decb32f94ca46319440e612c9dfb.tar.gz postgresql-81fb51732e97decb32f94ca46319440e612c9dfb.zip |
Fix typo that had the code check the same thing twice.
Fujii Masao
-rw-r--r-- | src/interfaces/libpq/fe-protocol3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c index 4cef2b4eb72..28318f00697 100644 --- a/src/interfaces/libpq/fe-protocol3.c +++ b/src/interfaces/libpq/fe-protocol3.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.42 2010/01/15 09:19:10 heikki Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.43 2010/04/28 13:46:23 mha Exp $ * *------------------------------------------------------------------------- */ @@ -1909,7 +1909,7 @@ build_startup_packet(const PGconn *conn, char *packet, ADD_STARTUP_OPTION("user", conn->pguser); if (conn->dbName && conn->dbName[0]) ADD_STARTUP_OPTION("database", conn->dbName); - if (conn->replication && conn->replication) + if (conn->replication && conn->replication[0]) ADD_STARTUP_OPTION("replication", conn->replication); if (conn->pgoptions && conn->pgoptions[0]) ADD_STARTUP_OPTION("options", conn->pgoptions); |