Commit 65d857d9 authored by Alvaro Herrera's avatar Alvaro Herrera

Fix declaration after statement

This style is frowned upon.  I inadvertently introduced one in commit
fe0e0b4f.  (My compiler does not complain about it, even though
-Wdeclaration-after-statement is specified.  Weird.)

Author: Masahiko Sawada
parent 4cae471d
...@@ -2725,9 +2725,11 @@ readCommandResponse(CState *st, char *varprefix) ...@@ -2725,9 +2725,11 @@ readCommandResponse(CState *st, char *varprefix)
while (res != NULL) while (res != NULL)
{ {
/* look now at the next result to know whether it is the last */ bool is_last;
/* peek at the next result to know whether the current is last */
next_res = PQgetResult(st->con); next_res = PQgetResult(st->con);
bool is_last = (next_res == NULL); is_last = (next_res == NULL);
switch (PQresultStatus(res)) switch (PQresultStatus(res))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment