Merge branch 'js/maint-send-pack-stateless-rpc-deadlock-fix'
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 May 2011 03:37:19 +0000 (20:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 May 2011 03:37:19 +0000 (20:37 -0700)
* js/maint-send-pack-stateless-rpc-deadlock-fix:
sideband_demux(): fix decl-after-stmt

builtin/send-pack.c
index 4ac2ca984ff36588c68274f10f131ef88023d622..e6a3495e1ce8f3ae635fbf53419798ac510791d4 100644 (file)
@@ -228,11 +228,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;
 }