aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin-send-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-send-pack.c b/builtin-send-pack.c
index aef47f861..fb110eb43 100644
--- a/builtin-send-pack.c
+++ b/builtin-send-pack.c
@@ -225,11 +225,11 @@ static void print_helper_status(struct ref *ref)
static int sideband_demux(int in, int out, void *data)
{
- int *fd = data;
+ int *fd = data, ret;
#ifdef NO_PTHREADS
close(fd[1]);
#endif
- int ret = recv_sideband("send-pack", fd[0], out);
+ ret = recv_sideband("send-pack", fd[0], out);
close(out);
return ret;
}