mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Avoid 'clobbered by longjmp' warning in psql/copy.c.
This was introduced in 51bb79569f
.
This commit is contained in:
parent
bdd5726c34
commit
afaefa1b31
@ -518,7 +518,7 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
|
||||
{
|
||||
bool OK;
|
||||
char buf[COPYBUFSIZ];
|
||||
bool showprompt = false;
|
||||
bool showprompt;
|
||||
|
||||
/*
|
||||
* Establish longjmp destination for exiting from wait-for-input. (This is
|
||||
@ -545,6 +545,8 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
|
||||
puts(_("Enter data to be copied followed by a newline.\n"
|
||||
"End with a backslash and a period on a line by itself."));
|
||||
}
|
||||
else
|
||||
showprompt = false;
|
||||
|
||||
OK = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user