aboutsummaryrefslogtreecommitdiffstatshomepage
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
commite67e511e00b98d639343ad38244d30d1b9cd6cf4 (patch)
tree2b9c481b3465ff8074c9b610bffd9557b0fdbcbc /roff.c
parentd8e03f2c2672f6af5f40b99b8717712278692607 (diff)
downloadmandoc-e67e511e00b98d639343ad38244d30d1b9cd6cf4.tar.gz
mandoc-e67e511e00b98d639343ad38244d30d1b9cd6cf4.tar.zst
mandoc-e67e511e00b98d639343ad38244d30d1b9cd6cf4.zip
remove a few redundant conditions that jsg@ found with cppcheck
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roff.c b/roff.c
index a6f27040..d91c9c2b 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.290 2017/03/03 11:50:49 schwarze Exp $ */
+/* $Id: roff.c,v 1.291 2017/03/03 13:55:32 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);
}