diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-03 13:55:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-03 13:55:31 +0000 |
commit | e67e511e00b98d639343ad38244d30d1b9cd6cf4 (patch) | |
tree | 2b9c481b3465ff8074c9b610bffd9557b0fdbcbc /mdoc.c | |
parent | d8e03f2c2672f6af5f40b99b8717712278692607 (diff) | |
download | mandoc-e67e511e00b98d639343ad38244d30d1b9cd6cf4.tar.gz mandoc-e67e511e00b98d639343ad38244d30d1b9cd6cf4.tar.zst mandoc-e67e511e00b98d639343ad38244d30d1b9cd6cf4.zip |
remove a few redundant conditions that jsg@ found with cppcheck
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.260 2017/02/16 03:00:23 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.261 2017/03/03 13:55:31 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -382,7 +382,7 @@ mdoc_pmacro(struct roff_man *mdoc, int ln, char *buf, int offs) /* Jump to the next non-whitespace word. */ - while (buf[offs] && ' ' == buf[offs]) + while (buf[offs] == ' ') offs++; /* |