summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-03-03 13:55:06 +0000
committerschwarze <schwarze@openbsd.org>2017-03-03 13:55:06 +0000
commit9b4231130a121866eb670be1e8a971d40ad10f3b (patch)
tree9e8ad6e8801e2ae9951b420d28be3d5654687bd8 /usr.bin/mandoc/man.c
parentFix a copy-and-paste error that caused man(7) manuals without (diff)
downloadwireguard-openbsd-9b4231130a121866eb670be1e8a971d40ad10f3b.tar.xz
wireguard-openbsd-9b4231130a121866eb670be1e8a971d40ad10f3b.zip
remove a few redundant conditions that jsg@ found with cppcheck
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r--usr.bin/mandoc/man.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c
index dd0c0c341f8..8d99982e7cd 100644
--- a/usr.bin/mandoc/man.c
+++ b/usr.bin/mandoc/man.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man.c,v 1.115 2017/01/10 13:46:53 schwarze Exp $ */
+/* $OpenBSD: man.c,v 1.116 2017/03/03 13:55:06 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -201,7 +201,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++;
/*