{"thread":{"id":"35757","subject":"[PATCH 6/6] builtin/fetch.c: reduce scope of variable","startedAt":"2014-01-29T16:54:16Z","lastAt":"2014-01-29T16:54:16Z","messageCount":1,"participants":["Elia Pinto"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"233892","messageId":"1391014456-12493-1-git-send-email-gitter.spiros@gmail.com","threadId":"35757","inReplyTo":null,"subject":"[PATCH 6/6] builtin/fetch.c: reduce scope of variable","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-01-29T16:54:16Z","receivedAt":"2014-01-29T16:54:16Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n builtin/fetch.c |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/fetch.c b/builtin/fetch.c\nindex 025bc3e..55f457c 100644\n--- a/builtin/fetch.c\n+++ b/builtin/fetch.c\n@@ -1026,7 +1026,6 @@ static int fetch_multiple(struct string_list *list)\n \n static int fetch_one(struct remote *remote, int argc, const char **argv)\n {\n-\tint i;\n \tstatic const char **refs = NULL;\n \tstruct refspec *refspec;\n \tint ref_nr = 0;\n@@ -1050,6 +1049,7 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)\n \n \tif (argc > 0) {\n \t\tint j = 0;\n+\t\tint i;\n \t\trefs = xcalloc(argc + 1, sizeof(const char *));\n \t\tfor (i = 0; i < argc; i++) {\n \t\t\tif (!strcmp(argv[i], \"tag\")) {\n-- \n1.7.10.4\n"}]}