From 63edf6044520b30f6e269cbb1e4a63352f05ac0f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 31 Dec 2013 18:07:42 +0000 Subject: remove assignments that will be overwritten right afterwards, and remove pointless local variables; found in a clang output from Ulrich Spoerlein --- term.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'term.c') diff --git a/term.c b/term.c index e7b95578..79a39ff2 100644 --- a/term.c +++ b/term.c @@ -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 * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze @@ -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++; -- cgit v1.2.3-56-ge451