aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.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 /man.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 'man.c')
-rw-r--r--man.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man.c b/man.c
index a2db05fb..aea3872e 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.167 2017/01/10 13:47:00 schwarze Exp $ */
+/* $Id: man.c,v 1.168 2017/03/03 13:55:31 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -203,7 +203,7 @@ man_pmacro(struct roff_man *man, int ln, char *buf, int offs)
/* Jump to the next non-whitespace word. */
- while (buf[offs] && buf[offs] == ' ')
+ while (buf[offs] == ' ')
offs++;
/*