]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
start: do not init ns_clone_flags to -1
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 28 May 2018 11:27:43 +0000 (13:27 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 28 May 2018 11:27:43 +0000 (13:27 +0200)
ns_clone_flags is used as a bitmask so initializing it to -1 is a bad idea.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c

index 048b97b4fc047a0651d30bd089d044cb40c44f4e..7ec151e1cfad6231a29121260c775135bdcb116d 100644 (file)
@@ -619,8 +619,6 @@ void lxc_zero_handler(struct lxc_handler *handler)
 
        memset(handler, 0, sizeof(struct lxc_handler));
 
-       handler->ns_clone_flags = -1;
-
        handler->pinfd = -1;
 
        handler->sigfd = -1;