diff --git a/server-client.c b/server-client.c index 59969618..91dd9daf 100644 --- a/server-client.c +++ b/server-client.c @@ -95,6 +95,7 @@ server_client_create(int fd) environ_init(&c->environ); + c->fd = -1; c->cwd = -1; c->cmdq = cmdq_new(c);