diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-03-03 13:55:07 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-03-03 13:55:07 +0000 |
commit | 186405727436351054e1d240e68a7df1c49dfce0 (patch) | |
tree | 8ebac6177fdf46fff9d7fa99314dd48e698665eb /usr.bin/mandoc/man.c | |
parent | dcbc6fca6a5cddbad90f3256cf9ecad2b40b4d42 (diff) |
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.c | 4 |
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++; /* |