Commit b2b571ce by Carlos Martín Nieto

fetch: declare variables at the top of the block

parent 6f6871a9
...@@ -379,13 +379,14 @@ int git_fetch__download_pack( ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment