Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2012-10-18 21:05:24 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2012-10-18 21:05:24 +0400
commitb2b571ce0c2969bdc00bfa400d20da5cdece1dcd (patch)
treee116613595aa0238b7eea644d355ed3a3a335312 /src/fetch.c
parent6f6871a9dbf6ec39013655c15d0e5c6674322d24 (diff)
fetch: declare variables at the top of the block
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fetch.c b/src/fetch.c
index 4f3d73d0e..dc01f6791 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -379,13 +379,14 @@ int git_fetch__download_pack(
}
do {
+ git_pkt *pkt;
+
if (t->cancel.val) {
giterr_set(GITERR_NET, "The fetch was cancelled by the user");
error = GIT_EUSER;
goto on_error;
}
- git_pkt *pkt;
if (recv_pkt(&pkt, buf) < 0)
goto on_error;