Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: Fixed stdinit bug.
[ashd.git]
/
lib
/
cf.c
diff --git
a/lib/cf.c
b/lib/cf.c
index 61b39159efbe0a7a2b58832026e36e399c1a5c43..2ca910a3427212c4e6e3f80abb32a47a63e2987a 100644
(file)
--- 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) {