File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const char *pgut_dbname = NULL;
3838const char * host = NULL ;
3939const char * port = NULL ;
4040const char * username = NULL ;
41- char * password = NULL ;
41+ static char * password = NULL ;
4242bool prompt_password = true;
4343
4444/* Database connections */
@@ -1086,6 +1086,7 @@ prompt_for_password(const char *username)
10861086 }
10871087
10881088#if PG_VERSION_NUM >= 100000
1089+ password = (char * ) pgut_malloc (sizeof (char ) * 100 + 1 );
10891090 if (username == NULL )
10901091 simple_prompt ("Password: " , password , 100 , false);
10911092 else
Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ extern const char *pgut_dbname;
101101extern const char * host ;
102102extern const char * port ;
103103extern const char * username ;
104- extern char * password ;
105104extern bool prompt_password ;
106105
107106extern bool interrupted ;
You can’t perform that action at this time.
0 commit comments