mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 14:37:30 +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 {
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user