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

Commit 65d857d

Browse files
committed
Fix declaration after statement
This style is frowned upon. I inadvertently introduced one in commit fe0e0b4. (My compiler does not complain about it, even though -Wdeclaration-after-statement is specified. Weird.) Author: Masahiko Sawada
1 parent 4cae471 commit 65d857d

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+
bool is_last;
2729+
2730+
/* peek at the next result to know whether the current is last */
27292731
next_res = PQgetResult(st->con);
2730-
bool is_last = (next_res == NULL);
2732+
is_last = (next_res == NULL);
27312733

27322734
switch (PQresultStatus(res))
27332735
{

0 commit comments

Comments
 (0)