diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-12-31 18:07:42 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-12-31 18:07:42 +0000 |
commit | 63edf6044520b30f6e269cbb1e4a63352f05ac0f (patch) | |
tree | 760cb6555561c2b813e40173f0f1e4484bd171a9 /term.c | |
parent | dd5cab6a321a91a56c669261f9bae5aa7d2c00df (diff) | |
download | mandoc-63edf6044520b30f6e269cbb1e4a63352f05ac0f.tar.gz mandoc-63edf6044520b30f6e269cbb1e4a63352f05ac0f.tar.zst mandoc-63edf6044520b30f6e269cbb1e4a63352f05ac0f.zip |
remove assignments that will be overwritten right afterwards,
and remove pointless local variables;
found in a clang output from Ulrich Spoerlein <uqs at FreeBSD>
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.214 2013/12/25 00:39:31 schwarze Exp $ */ +/* $Id: term.c,v 1.215 2013/12/31 18:07:42 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -659,7 +659,6 @@ term_strlen(const struct termp *p, const char *cp) for (i = 0; i < rsz; i++) sz += cond_width(p, *cp++, &skip); - c = 0; switch (*cp) { case ('\\'): cp++; |