*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.156 2000/12/22 07:59:32 ishii Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.157 2000/12/31 18:15:58 tgl Exp $
*
*-------------------------------------------------------------------------
*/
if (pgport == NULL || pgport[0] == '\0')
{
- if ((tmp = getenv("PGPORT")) == NULL)
+ tmp = getenv("PGPORT");
+ if (tmp == NULL || tmp[0] == '\0')
tmp = DEF_PGPORT_STR;
conn->pgport = strdup(tmp);
}