aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-02-20 22:47:12 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-02-20 22:47:12 +0000
commita40c17e17dfdd4a04ea25ed1ec4d05c27444d3c8 (patch)
treef3d81a7b2e973237c98c4a0ae17fcee1645dc07d /src/bin/psql/command.c
parent8b9f293e7d7580ab5f7bbf787e1469860f6689b9 (diff)
downloadpostgresql-a40c17e17dfdd4a04ea25ed1ec4d05c27444d3c8.tar.gz
postgresql-a40c17e17dfdd4a04ea25ed1ec4d05c27444d3c8.zip
Fix comment.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index e69737c4a8c..5bd8a5348d6 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.64 2002/01/18 16:14:54 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.65 2002/02/20 22:47:12 tgl Exp $
*/
#include "postgres_fe.h"
#include "command.h"
@@ -1286,12 +1286,11 @@ do_connect(const char *new_dbname, const char *new_user)
/* need to prompt for password? */
if (pset.getPassword)
- pwparam = prompted_password = simple_prompt("Password: ", 100, false); /* need to save for
- * free() */
+ pwparam = prompted_password = simple_prompt("Password: ", 100, false);
/*
- * Use old password if no new one given (if you didn't have an old
- * one, fine)
+ * Use old password (if any) if no new one given and we are
+ * reconnecting as same user
*/
if (!pwparam && oldconn && PQuser(oldconn) && userparam &&
strcmp(PQuser(oldconn), userparam) == 0)