]> 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)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 10 Sep 2017 21:51:57 +0000 (23:51 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/utils.c

index 656d3ca843e5425dfab6247ad36ed5d65eaf71ff..3c83d7199bf957df6b9f2c1601f24002d7d6e215 100644 (file)
@@ -494,7 +494,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 */
@@ -533,7 +532,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");