From: Robert Kessl Date: Wed, 30 Jul 2014 08:55:59 +0000 (+0200) Subject: tableprinter: compile fix X-Git-Tag: v6.1~3^2~18 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a9e1ebe04662b72750d1dc269f839cc13e6f7163;p=libucw.git tableprinter: compile fix --- diff --git a/ucw/table.c b/ucw/table.c index 9414b18d..b00979c2 100644 --- a/ucw/table.c +++ b/ucw/table.c @@ -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; }