Commit 98c7cb11 authored by Marc G. Fournier's avatar Marc G. Fournier

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.
parent 53622d66
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 ...@@ -400,7 +400,7 @@ PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions, cons
conn->pgpass = strdup(tmp); conn->pgpass = strdup(tmp);
} }
else else
conn->pgpass = 0; conn->pgpass = DefaultPassword;
if (!error) if (!error)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment