mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 04:01:41 +00:00
fetch: declare variables at the top of the block
This commit is contained in:
parent
6f6871a9db
commit
b2b571ce0c
@ -379,13 +379,14 @@ int git_fetch__download_pack(
|
|||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
git_pkt *pkt;
|
||||||
|
|
||||||
if (t->cancel.val) {
|
if (t->cancel.val) {
|
||||||
giterr_set(GITERR_NET, "The fetch was cancelled by the user");
|
giterr_set(GITERR_NET, "The fetch was cancelled by the user");
|
||||||
error = GIT_EUSER;
|
error = GIT_EUSER;
|
||||||
goto on_error;
|
goto on_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
git_pkt *pkt;
|
|
||||||
if (recv_pkt(&pkt, buf) < 0)
|
if (recv_pkt(&pkt, buf) < 0)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user