summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-03 13:55:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-03 13:55:31 +0000
commitfedafaaae16f368355e7387e9b586c527c7b0109 (patch)
tree06189b06e3f6c87e55dd9989755c28716ae6b6bb /roff.c
parent1ad6f6e0ee89c526a785591e3e32ee04aed82f7b (diff)
downloadmandoc-fedafaaae16f368355e7387e9b586c527c7b0109.tar.gz
remove a few redundant conditions that jsg@ found with cppcheck
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c2
1 files changed, 1 insertions, 1 deletions
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);
}