From 0037a42107b952c9d903719615747e760e4e7247 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 26 Dec 2013 09:40:00 -0800 Subject: Initialize both value1 & value2, not value1 twice Flagged by cppcheck 1.62: [src/encparse.c:303] -> [src/encparse.c:303]: (performance, inconclusive) Variable 'value1' is reassigned a value before the old one has been used if variable is no semaphore variable. Signed-off-by: Alan Coopersmith --- src/encparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/encparse.c') diff --git a/src/encparse.c b/src/encparse.c index ee18b3f..d10634d 100644 --- a/src/encparse.c +++ b/src/encparse.c @@ -300,7 +300,7 @@ getnextline(FontFilePtr f) } } else if(!strcasecmp(keyword_value, "STARTMAPPING")) { keyword_value[0] = 0; - value1 = 0; value1 = 0; + value1 = 0; value2 = 0; /* first a keyword */ token = gettoken(f,c,&c); if(token != KEYWORD_TOKEN) { -- cgit v1.2.3