projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdd5726
)
Avoid 'clobbered by longjmp' warning in psql/copy.c.
author
Andres Freund
<andres@anarazel.de>
Fri, 19 Sep 2014 14:41:54 +0000
(16:41 +0200)
committer
Andres Freund
<andres@anarazel.de>
Fri, 19 Sep 2014 14:47:27 +0000
(16:47 +0200)
This was introduced in
51bb79569f934ad2135c2ff859c61b9ab8d51750
.
src/bin/psql/copy.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/copy.c
b/src/bin/psql/copy.c
index 90f4a24fa5dc2e8d9e5a45babe3311705ee18a90..010a593f6a9e3eb7c0f8c26c9442573ab0c6475b 100644
(file)
--- 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;