From: Christian Brauner Date: Sat, 20 Jan 2018 11:57:12 +0000 (+0100) Subject: attach: init struct X-Git-Tag: lxc-3.0.0.beta1~66^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c948657b04506f18a572ce525cd2dbce8e84afca;p=thirdparty%2Flxc.git attach: init struct Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 34bdf9145..2d167d63e 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -1269,6 +1269,8 @@ int lxc_attach(const char *name, const char *lxcpath, } pty.log_fd = options->log_fd; + } else { + lxc_pty_init(&pty); } /* Create a socket pair for IPC communication; set SOCK_CLOEXEC in order