C requires variable declarations to be at the start of the block REL_2_2_0_B5
authorSteve Singer <ssinger@ca.afilias.info>
Fri, 26 Jul 2013 20:10:47 +0000 (16:10 -0400)
committerSteve Singer <ssinger@ca.afilias.info>
Fri, 26 Jul 2013 20:10:47 +0000 (16:10 -0400)
src/slonik/slonik.c

index 429a8de4c05bab7f9aee1db01582e7bcf7afafe3..2d22e2f6fb543d66a974fc673ff49b6a40887617 100644 (file)
@@ -3055,8 +3055,8 @@ slonik_failed_node(SlonikStmt_failed_node * stmt)
 
                for (i = 0; i < node_entry->num_nodes; i++)
                {
-                       has_candidate = true;
                        const char * pidcolumn;
+                       has_candidate = true;
                        nodeinfo[i].no_id = (int) strtol(PQgetvalue(res1, i, 0), NULL, 10);
                        nodeinfo[i].adminfo = get_active_adminfo((SlonikStmt *) stmt,
                                                                                                         nodeinfo[i].no_id);