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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy