Skip to content

Commit

Permalink
builtin/fetch.c: reduce scope of variable
Browse files Browse the repository at this point in the history
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Elia Pinto authored and Junio C Hamano committed Jan 31, 2014
1 parent e23fd15 commit bf7e645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,6 @@ static int fetch_multiple(struct string_list *list)

static int fetch_one(struct remote *remote, int argc, const char **argv)
{
int i;
static const char **refs = NULL;
struct refspec *refspec;
int ref_nr = 0;
Expand All @@ -1011,6 +1010,7 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)

if (argc > 0) {
int j = 0;
int i;
refs = xcalloc(argc + 1, sizeof(const char *));
for (i = 0; i < argc; i++) {
if (!strcmp(argv[i], "tag")) {
Expand Down

0 comments on commit bf7e645

Please sign in to comment.