From: Jan Wilhelm
authorMarc G. Fournier
Sat, 17 Jan 1998 23:17:46 +0000 (23:17 +0000)
committerMarc G. Fournier
Sat, 17 Jan 1998 23:17:46 +0000 (23:17 +0000)
a) psql dumps core when using -a password and PGUSER is set but PGPASSWORD
   not set.

src/interfaces/libpq/fe-connect.c

index 2ca6373dd2ca8e787d709f53aba8461dc816d190..e43adcc06516733cb0b9c9e87175207a27a3ca6d 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.56 1998/01/14 15:48:51 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.57 1998/01/17 23:17:46 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -400,7 +400,7 @@ PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions, cons
            conn->pgpass = strdup(tmp);
        }
        else
-           conn->pgpass = 0;
+           conn->pgpass = DefaultPassword;
 
        if (!error)
        {