diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2012-10-18 19:05:24 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2012-10-18 19:05:24 +0200 |
commit | b2b571ce0c2969bdc00bfa400d20da5cdece1dcd (patch) | |
tree | e116613595aa0238b7eea644d355ed3a3a335312 /src/fetch.c | |
parent | 6f6871a9dbf6ec39013655c15d0e5c6674322d24 (diff) | |
download | libgit2-b2b571ce0c2969bdc00bfa400d20da5cdece1dcd.tar.gz |
fetch: declare variables at the top of the block
Diffstat (limited to 'src/fetch.c')
-rw-r--r-- | src/fetch.c | 3 |
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; |