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

Commit65d857d

Browse files
committed
Fix declaration after statement
This style is frowned upon. I inadvertently introduced one in commitfe0e0b4. (My compiler does not complain about it, even though-Wdeclaration-after-statement is specified. Weird.)Author: Masahiko Sawada
1 parent4cae471 commit65d857d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,9 +2725,11 @@ readCommandResponse(CState *st, char *varprefix)
27252725

27262726
while (res!=NULL)
27272727
{
2728-
/* look now at the next result to know whether it is the last */
2728+
boolis_last;
2729+
2730+
/* peek at the next result to know whether the current is last */
27292731
next_res=PQgetResult(st->con);
2730-
boolis_last= (next_res==NULL);
2732+
is_last= (next_res==NULL);
27312733

27322734
switch (PQresultStatus(res))
27332735
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp