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;
38
38
const char * host = NULL ;
39
39
const char * port = NULL ;
40
40
const char * username = NULL ;
41
- char * password = NULL ;
41
+ static char * password = NULL ;
42
42
bool prompt_password = true;
43
43
44
44
/* Database connections */
@@ -1086,6 +1086,7 @@ prompt_for_password(const char *username)
1086
1086
}
1087
1087
1088
1088
#if PG_VERSION_NUM >= 100000
1089
+ password = (char * ) pgut_malloc (sizeof (char ) * 100 + 1 );
1089
1090
if (username == NULL )
1090
1091
simple_prompt ("Password: " , password , 100 , false);
1091
1092
else
Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ extern const char *pgut_dbname;
101
101
extern const char * host ;
102
102
extern const char * port ;
103
103
extern const char * username ;
104
- extern char * password ;
105
104
extern bool prompt_password ;
106
105
107
106
extern bool interrupted ;
You can’t perform that action at this time.
0 commit comments