]> granicus.if.org Git - postgresql/commitdiff
Fix typo that had the code check the same thing twice.
authorMagnus Hagander <magnus@hagander.net>
Wed, 28 Apr 2010 13:46:23 +0000 (13:46 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 28 Apr 2010 13:46:23 +0000 (13:46 +0000)
Fujii Masao

src/interfaces/libpq/fe-protocol3.c

index 4cef2b4eb72b88021ac6341f4ef84fd96baee4d8..28318f006977f370bb9e545cba4f6bdd3afbd5ee 100644 (file)
@@ -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);