From: Christian Brauner Date: Wed, 28 Jul 2021 16:39:31 +0000 (+0200) Subject: conf: ensure devpts_fd is set to -EBADF X-Git-Tag: lxc-5.0.0~131^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3912%2Fhead;p=thirdparty%2Flxc.git conf: ensure devpts_fd is set to -EBADF Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index d893328c7..482d1213b 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3255,6 +3255,7 @@ struct lxc_conf *lxc_conf_init(void) new->console.ptx = -EBADF; new->console.pty = -EBADF; new->console.name[0] = '\0'; + new->devpts_fd = -EBADF; memset(&new->console.ringbuf, 0, sizeof(struct lxc_ringbuf)); new->maincmd_fd = -1; new->monitor_signal_pdeath = SIGKILL;