From c948657b04506f18a572ce525cd2dbce8e84afca Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 20 Jan 2018 12:57:12 +0100 Subject: [PATCH] attach: init struct Signed-off-by: Christian Brauner --- src/lxc/attach.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.2