Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit afaefa1

Browse files
committed
Avoid 'clobbered by longjmp' warning in psql/copy.c.
This was introduced in 51bb795.
1 parent bdd5726 commit afaefa1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/psql/copy.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
518518
{
519519
bool OK;
520520
char buf[COPYBUFSIZ];
521-
bool showprompt = false;
521+
bool showprompt;
522522

523523
/*
524524
* Establish longjmp destination for exiting from wait-for-input. (This is
@@ -545,6 +545,8 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
545545
puts(_("Enter data to be copied followed by a newline.\n"
546546
"End with a backslash and a period on a line by itself."));
547547
}
548+
else
549+
showprompt = false;
548550

549551
OK = true;
550552

0 commit comments

Comments
 (0)