Initialize client fd to -1 as well, from Bobby Powers.

pull/57/head
nicm 2015-07-17 06:53:47 +00:00
parent 8dcea2cc14
commit 3192178f15
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ server_client_create(int fd)
environ_init(&c->environ);
c->fd = -1;
c->cwd = -1;
c->cmdq = cmdq_new(c);