]> mj.ucw.cz Git - libucw.git/commitdiff
tableprinter: compile fix
authorRobert Kessl <kesslr@centrum.cz>
Wed, 30 Jul 2014 08:55:59 +0000 (10:55 +0200)
committerRobert Kessl <kesslr@centrum.cz>
Wed, 30 Jul 2014 08:55:59 +0000 (10:55 +0200)
ucw/table.c

index 9414b18d399e4aec63080c4ece5dc5ccac44bd0e..b00979c207057d702eafabe8d6fb2dd6aed80969 100644 (file)
@@ -49,7 +49,8 @@ struct table *table_init(const struct table_template *tbl_template)
 
   // initialize column_order
   if(tbl_template->column_order) {
-    for(int cols_to_output = 0; ; cols_to_output++) {
+    int cols_to_output = 0;
+    for(; ; cols_to_output++) {
       if(tbl_template->column_order[cols_to_output].idx == ~0U) break;
     }