Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitafaefa1

Browse files
committed
Avoid 'clobbered by longjmp' warning in psql/copy.c.
This was introduced in51bb795.
1 parentbdd5726 commitafaefa1

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
boolOK;
520520
charbuf[COPYBUFSIZ];
521-
boolshowprompt= false;
521+
boolshowprompt;
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)

[8]ページ先頭

©2009-2025 Movatter.jp