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 /man.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 'man.c')
-rw-r--r-- | man.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++; /* |