From: Jan Wilhelm <Jan_Wilhelm@Physik.TU-Muenchen.DE>

a) psql dumps core when using -a password and PGUSER is set but PGPASSWORD
   not set.
This commit is contained in:
Marc G. Fournier 1998-01-17 23:17:46 +00:00
parent 53622d66d2
commit 98c7cb11de
1 changed files with 2 additions and 2 deletions

View 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)
{