Skip to content

Commit a40c17e

Browse files
committed
Fix comment.
1 parent 8b9f293 commit a40c17e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/bin/psql/command.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.64 2002/01/18 16:14:54 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.65 2002/02/20 22:47:12 tgl Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "command.h"
@@ -1286,12 +1286,11 @@ do_connect(const char *new_dbname, const char *new_user)
12861286

12871287
/* need to prompt for password? */
12881288
if (pset.getPassword)
1289-
pwparam = prompted_password = simple_prompt("Password: ", 100, false); /* need to save for
1290-
* free() */
1289+
pwparam = prompted_password = simple_prompt("Password: ", 100, false);
12911290

12921291
/*
1293-
* Use old password if no new one given (if you didn't have an old
1294-
* one, fine)
1292+
* Use old password (if any) if no new one given and we are
1293+
* reconnecting as same user
12951294
*/
12961295
if (!pwparam && oldconn && PQuser(oldconn) && userparam &&
12971296
strcmp(PQuser(oldconn), userparam) == 0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy