Commit afaefa1b authored by Andres Freund's avatar Andres Freund

Avoid 'clobbered by longjmp' warning in psql/copy.c.

This was introduced in 51bb7956.
parent bdd5726c
...@@ -518,7 +518,7 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res) ...@@ -518,7 +518,7 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
{ {
bool OK; bool OK;
char buf[COPYBUFSIZ]; char buf[COPYBUFSIZ];
bool showprompt = false; bool showprompt;
/* /*
* Establish longjmp destination for exiting from wait-for-input. (This is * Establish longjmp destination for exiting from wait-for-input. (This is
...@@ -545,6 +545,8 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res) ...@@ -545,6 +545,8 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
puts(_("Enter data to be copied followed by a newline.\n" puts(_("Enter data to be copied followed by a newline.\n"
"End with a backslash and a period on a line by itself.")); "End with a backslash and a period on a line by itself."));
} }
else
showprompt = false;
OK = true; OK = true;
......
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