run-command: introduce CHILD_PROCESS_INIT
[gitweb.git] / connect.c
index 5047402a1aade7a443f55999550ae4542189ef01..f5b930a2699c31bc861505d3bd46a4dacf709cf0 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -639,7 +639,7 @@ static enum protocol parse_connect_url(const char *url_orig, char **ret_host,
        return protocol;
 }
 
-static struct child_process no_fork;
+static struct child_process no_fork = CHILD_PROCESS_INIT;
 
 /*
  * This returns a dummy child_process if the transport protocol does not