aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2014-09-19 16:41:54 +0200
committerAndres Freund <andres@anarazel.de>2014-09-19 16:47:27 +0200
commitafaefa1b31ba900bdc6987a752483e1580356e48 (patch)
treed9fc6a64ec7f3d8d30f5dde4ef580d7b84be0a62 /src
parentbdd5726c347016ea34e9fb68d1b8b71046e25d2e (diff)
downloadpostgresql-afaefa1b31ba900bdc6987a752483e1580356e48.tar.gz
postgresql-afaefa1b31ba900bdc6987a752483e1580356e48.zip
Avoid 'clobbered by longjmp' warning in psql/copy.c.
This was introduced in 51bb79569f934ad2135c2ff859c61b9ab8d51750.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/copy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c
index 90f4a24fa5d..010a593f6a9 100644
--- a/src/bin/psql/copy.c
+++ b/src/bin/psql/copy.c
@@ -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;