From: Sami Kerola Date: Wed, 21 Oct 2020 20:17:51 +0000 (+0100) Subject: ul: make set_column() zero check more obvious X-Git-Tag: v2.37-rc1~275^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=792ff9fcee1bad2b8a43e83f921aa01d96cd3188;p=thirdparty%2Futil-linux.git ul: make set_column() zero check more obvious Signed-off-by: Sami Kerola --- diff --git a/text-utils/ul.c b/text-utils/ul.c index 627fda8024..d5bca457b6 100644 --- a/text-utils/ul.c +++ b/text-utils/ul.c @@ -482,7 +482,7 @@ static void filter(struct ul_ctl *ctl, struct term_caps const *const tcs, FILE * while ((c = getwc(f)) != WEOF) { switch (c) { case '\b': - set_column(ctl, ctl->column && 0 < (ctl->column - 1) ? ctl->column - 1 : 0); + set_column(ctl, ctl->column && 0 < ctl->column ? ctl->column - 1 : 0); continue; case '\t': set_column(ctl, (ctl->column + 8) & ~07);