OSDN Git Service

From: Jan Wilhelm <Jan_Wilhelm@Physik.TU-Muenchen.DE>
authorMarc G. Fournier <scrappy@hub.org>
Sat, 17 Jan 1998 23:17:46 +0000 (23:17 +0000)
committerMarc G. Fournier <scrappy@hub.org>
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 2ca6373..e43adcc 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)
                {