From: Karel Zak Date: Wed, 24 Feb 2016 12:42:28 +0000 (+0100) Subject: libsmartcols: fix stupid typo X-Git-Tag: v2.28-rc1~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c3ed5bf17503e22ef8da306dfaae14b27cd323d;p=thirdparty%2Futil-linux.git libsmartcols: fix stupid typo Signed-off-by: Karel Zak --- diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c index e37f27761e..96ec137596 100644 --- a/libsmartcols/src/table_print.c +++ b/libsmartcols/src/table_print.c @@ -957,8 +957,7 @@ static int count_column_width(struct libscols_table *tb, cl->width = 0; - - if (cl->width_min) { + if (!cl->width_min) { if (cl->width_hint < 1 && scols_table_is_maxout(tb)) cl->width_min = (size_t) (cl->width_hint * tb->termwidth) - (is_last_column(cl) ? 0 : 1); if (scols_cell_get_data(&cl->header)) {