tbl = table_init(&test_tbl2);
table_set_col_order_by_name(tbl, "");
- err = table_set_option_value(tbl, "cols", "size[MB,TB,KB],size[MB],size[GB],size[TB],size[auto],ts[datetime],ts[],size[MB,KB");
+ err = table_set_option_value(tbl, "cols", "size[MB,TB,KB],size[MB],size[GB],size[TB],size[auto],ts[,,datetime,timestamp],ts[],size[MB,KB");
bprintf(out, "Error occured: %s\n", err);
table_cleanup(tbl);
if(*next == 0) break;
*next = 0;
next++;
- *GARY_PUSH(result) = col_opt;
+ if(*col_opt)
+ *GARY_PUSH(result) = col_opt;
col_opt = next;
}
- if(strlen(col_opt) > 0)
+ if(*col_opt)
*GARY_PUSH(result) = col_opt;
return result;