Subject: [PATCH 6/7] use name[len] in switch directly, instead of creating a shadowed variable.

From: Pierre Habouzit <[email-masked]>
Date: Wed, 23 Aug 2006 12:39:15 +0200

Signed-off-by: Pierre Habouzit <[email-masked]>
---
 builtin-apply.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/builtin-apply.c b/builtin-apply.c
index 5991737..f8f5eeb 100644
--- a/builtin-apply.c
+++ b/builtin-apply.c
@@ -606,9 +606,7 @@ static char *git_header_name(char *line,
 	 * form.
 	 */
 	for (len = 0 ; ; len++) {
-		char c = name[len];
-
-		switch (c) {
+		switch (name[len]) {
 		default:
 			continue;
 		case '\n':
-- 
1.4.1.1