Commit a40c17e1 authored by Tom Lane's avatar Tom Lane

Fix comment.

parent 8b9f293e
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright 2000 by PostgreSQL Global Development Group * 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 "postgres_fe.h"
#include "command.h" #include "command.h"
...@@ -1286,12 +1286,11 @@ do_connect(const char *new_dbname, const char *new_user) ...@@ -1286,12 +1286,11 @@ do_connect(const char *new_dbname, const char *new_user)
/* need to prompt for password? */ /* need to prompt for password? */
if (pset.getPassword) if (pset.getPassword)
pwparam = prompted_password = simple_prompt("Password: ", 100, false); /* need to save for pwparam = prompted_password = simple_prompt("Password: ", 100, false);
* free() */
/* /*
* Use old password if no new one given (if you didn't have an old * Use old password (if any) if no new one given and we are
* one, fine) * reconnecting as same user
*/ */
if (!pwparam && oldconn && PQuser(oldconn) && userparam && if (!pwparam && oldconn && PQuser(oldconn) && userparam &&
strcmp(PQuser(oldconn), userparam) == 0) strcmp(PQuser(oldconn), userparam) == 0)
......
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