Skip to content

Commit bf7e645

Browse files
devzero2000gitster
authored andcommitted
builtin/fetch.c: reduce scope of variable
Signed-off-by: Elia Pinto <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e23fd15 commit bf7e645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/fetch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,6 @@ static int fetch_multiple(struct string_list *list)
987987

988988
static int fetch_one(struct remote *remote, int argc, const char **argv)
989989
{
990-
int i;
991990
static const char **refs = NULL;
992991
struct refspec *refspec;
993992
int ref_nr = 0;
@@ -1011,6 +1010,7 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
10111010

10121011
if (argc > 0) {
10131012
int j = 0;
1013+
int i;
10141014
refs = xcalloc(argc + 1, sizeof(const char *));
10151015
for (i = 0; i < argc; i++) {
10161016
if (!strcmp(argv[i], "tag")) {

0 commit comments

Comments
 (0)