lib: Fixed lingering stdchild bug.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 2 Mar 2014 09:26:05 +0000 (10:26 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 2 Mar 2014 09:26:05 +0000 (10:26 +0100)
lib/cf.c

index aae8485..4135209 100644 (file)
--- a/lib/cf.c
+++ b/lib/cf.c
@@ -380,7 +380,7 @@ static int stdhandle(struct child *ch, struct hthead *req, int fd, void (*chinit
     struct sidata idat;
     
     if(sd->type == CH_SOCKET) {
-       idat = (struct sidata) {.sd = sd, .sinit = chinit, sdata = sdata};
+       idat = (struct sidata) {.sd = sd, .sinit = chinit, .sdata = sdata};
        if(sd->fd < 0) {
            args = expandargs(sd);
            sd->fd = stdmkchild(args, stdinit, &idat);