From 792ff9fcee1bad2b8a43e83f921aa01d96cd3188 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Wed, 21 Oct 2020 21:17:51 +0100 Subject: [PATCH] ul: make set_column() zero check more obvious Signed-off-by: Sami Kerola --- text-utils/ul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2