fetch: declare variables at the top of the block

This commit is contained in:
Carlos Martín Nieto 2012-10-18 19:05:24 +02:00
parent 6f6871a9db
commit b2b571ce0c

View File

@ -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;