From fedafaaae16f368355e7387e9b586c527c7b0109 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 3 Mar 2017 13:55:31 +0000 Subject: remove a few redundant conditions that jsg@ found with cppcheck --- roff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index 5792eb86..c8f17532 100644 --- a/roff.c +++ b/roff.c @@ -1608,7 +1608,7 @@ roff_parseln(struct roff *r, int ln, struct buf *buf, int *offs) return ROFF_IGN; while (buf->buf[pos] != '\0' && buf->buf[pos] != ' ') pos++; - while (buf->buf[pos] != '\0' && buf->buf[pos] == ' ') + while (buf->buf[pos] == ' ') pos++; return tbl_read(r->tbl, ln, buf->buf, pos); } -- cgit