]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
utils: lxc_popen() remove dead assignments
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 10 Sep 2017 06:09:52 +0000 (08:09 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 4 Oct 2017 23:11:32 +0000 (19:11 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/utils.c

index 9f32f334b1646243aa3144c6042e9b68dcdc8ae8..922595c40883e291c498b38c63e68dfef92b3947 100644 (file)
@@ -439,7 +439,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
                int child_std_end = STDOUT_FILENO;
 
                close(parent_end);
-               parent_end = -1;
 
                if (child_end != child_std_end) {
                        /* dup2() doesn't dup close-on-exec flag */
@@ -478,7 +477,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
        /* parent */
 
        close(child_end);
-       child_end = -1;
 
        if (child_pid < 0) {
                ERROR("fork failure");