]> git.proxmox.com Git - mirror_lxc.git/commitdiff
attach: init struct
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 20 Jan 2018 11:57:12 +0000 (12:57 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 20 Jan 2018 20:21:38 +0000 (21:21 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index 34bdf91455fbc3b3cd3473211681cc3593c04deb..2d167d63ea6527a337e85f0d3c5222a54beb24e3 100644 (file)
@@ -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