diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-12-31 18:07:07 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-12-31 18:07:07 +0000 |
commit | 9751a701db74a8fd385fc8d9fc792c093df49fea (patch) | |
tree | ef04174dc5ea461b67a64ed3e1a15e75f93d3cb3 /usr.bin/mandoc/term.c | |
parent | b4b07389daf0899f0f1e041a31a8bfc74ef47939 (diff) |
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 'usr.bin/mandoc/term.c')
-rw-r--r-- | usr.bin/mandoc/term.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c index 795a3fdb167..fb0d370a3b9 100644 --- a/usr.bin/mandoc/term.c +++ b/usr.bin/mandoc/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.75 2013/12/25 00:39:13 schwarze Exp $ */ +/* $Id: term.c,v 1.76 2013/12/31 18:07:06 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -655,7 +655,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++; |