From: Fredrik Tolf Date: Sun, 14 Jul 2013 06:05:49 +0000 (+0200) Subject: lib: Fixed stdinit bug. X-Git-Url: http://dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=209dfd8b4d4e59ca933421285620401de998f3ab lib: Fixed stdinit bug. --- diff --git a/lib/cf.c b/lib/cf.c index 61b3915..2ca910a 100644 --- a/lib/cf.c +++ b/lib/cf.c @@ -320,7 +320,8 @@ static int stdhandle(struct child *ch, struct hthead *req, int fd, void (*chinit for(i = 0; sd->envp[i]; i += 2) putenv(sprintf2("%s=%s", sd->envp[i], sd->envp[i + 1])); - chinit(data); + if(chinit != NULL) + chinit(data); } if(sd->type == CH_SOCKET) {