diff options
author | nicm <nicm> | 2015-07-17 06:53:47 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-07-17 06:53:47 +0000 |
commit | 3192178f15c9bcc88021ceb74189173d562e7694 (patch) | |
tree | b89061561859c4a35b04bc3867c20763452c3888 | |
parent | 8dcea2cc14448494d25a6a68618ae7088bef1b95 (diff) | |
download | rtmux-3192178f15c9bcc88021ceb74189173d562e7694.tar.gz rtmux-3192178f15c9bcc88021ceb74189173d562e7694.tar.bz2 rtmux-3192178f15c9bcc88021ceb74189173d562e7694.zip |
Initialize client fd to -1 as well, from Bobby Powers.
-rw-r--r-- | server-client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c index 09348b05..c2c7070f 100644 --- a/server-client.c +++ b/server-client.c @@ -96,6 +96,7 @@ server_client_create(int fd) environ_init(&c->environ); + c->fd = -1; c->cwd = -1; c->cmdq = cmdq_new(c); |