summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-10-01 17:33:05 +0200
committerVicent Marti <tanoku@gmail.com>2012-10-01 17:33:05 +0200
commit9063be1f45287f945125315e7782745da8c1005d (patch)
treef6454de1e01c27a0561768391f1f95ae0ecbb5b1
parentbdaa40d3da5f57be275b2f1ba8d04253a2fcaea7 (diff)
downloadlibgit2-9063be1f45287f945125315e7782745da8c1005d.tar.gz
remote: Fix mid-block declaration
-rw-r--r--src/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c
index fd78164f3..c01e41dce 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -485,8 +485,8 @@ int git_remote_update_tips(git_remote *remote)
}
for (; i < refs->length; ++i) {
- autotag = 0;
git_pkt *pkt = refs->contents[i];
+ autotag = 0;
if (pkt->type == GIT_PKT_REF)
head = &((git_pkt_ref *)pkt)->head;