From e67e511e00b98d639343ad38244d30d1b9cd6cf4 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 3 Mar 2017 13:55:31 +0000 Subject: remove a few redundant conditions that jsg@ found with cppcheck --- roff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index a6f27040..d91c9c2b 100644 --- a/roff.c +++ b/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.290 2017/03/03 11:50:49 schwarze Exp $ */ +/* $Id: roff.c,v 1.291 2017/03/03 13:55:32 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017 Ingo Schwarze @@ -1608,7 +1608,7 @@ roff_parseln(struct roff *r, int ln, struct buf *buf, int *offs) return ROFF_IGN; while (buf->buf[pos] != '\0' && buf->buf[pos] != ' ') pos++; - while (buf->buf[pos] != '\0' && buf->buf[pos] == ' ') + while (buf->buf[pos] == ' ') pos++; return tbl_read(r->tbl, ln, buf->buf, pos); } -- cgit v1.2.3