Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin/fetch.c: reduce scope of variable
author
Elia Pinto
<gitter.spiros@gmail.com>
Wed, 29 Jan 2014 16:54:16 +0000
(08:54 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 31 Jan 2014 18:44:05 +0000
(10:44 -0800)
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e23fd15
)
diff --git
a/builtin/fetch.c
b/builtin/fetch.c
index bd7a10164f4fed8aeb6e8148e2ae8c0a793e7ee0..256c9eb020e5d3612991d04adac21a6874b9b63f 100644
(file)
--- a/
builtin/fetch.c
+++ b/
builtin/fetch.c
@@
-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;
@@
-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")) {