builtin/fetch.c: reduce scope of variable

Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elia Pinto committed Jan 29, 2014 at 08:54 UTC bf7e645c90e08f0d3391502c888453033e446372
1 file changed +1 -1
builtin/fetch.c
+1 -1
@@ -987,7 +987,6 @@ static int fetch_multiple(struct string_list *list)
987
988 static int fetch_one(struct remote *remote, int argc, const char **argv)
989 {
990 - int i;
990 static const char **refs = NULL;
991 struct refspec *refspec;
992 int ref_nr = 0;
@@ -1011,6 +1010,7 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
1010
1011 if (argc > 0) {
1012 int j = 0;
1013 + int i;
1014 refs = xcalloc(argc + 1, sizeof(const char *));
1015 for (i = 0; i < argc; i++) {
1016 if (!strcmp(argv[i], "tag")) {