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

Commitb7af62e

Browse files
committed
Avoid longjump/vfork warning about line_saved_in_history variable by
making it volatile.
1 parenta073a70 commitb7af62e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/psql/mainloop.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.76 2006/06/0503:55:00 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.77 2006/06/0514:47:38 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"mainloop.h"
@@ -41,8 +41,8 @@ MainLoop(FILE *source)
4141
char*line;/* current line of input */
4242
intadded_nl_pos;
4343
boolsuccess;
44-
boolline_saved_in_history;
45-
44+
45+
volatileboolline_saved_in_history;
4646
volatileintsuccessResult=EXIT_SUCCESS;
4747
volatilebackslashResultslashCmdStatus=PSQL_CMD_UNKNOWN;
4848
volatilepromptStatus_tprompt_status=PROMPT_READY;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp