summaryrefslogtreecommitdiff
path: root/libsmartcols
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2016-02-24 13:42:28 +0100
committerKarel Zak <kzak@redhat.com>2016-02-24 13:42:28 +0100
commit1c3ed5bf17503e22ef8da306dfaae14b27cd323d (patch)
tree3d902a1f7d6171b80356a7d3fce82cf9b57e80d3 /libsmartcols
parent249fc8fe899f51fad1eda05e97b38633ea78119f (diff)
downloadutil-linux-1c3ed5bf17503e22ef8da306dfaae14b27cd323d.tar.gz
libsmartcols: fix stupid typo
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols')
-rw-r--r--libsmartcols/src/table_print.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c
index e37f27761..96ec13759 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)) {