]> 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>
Sun, 24 Sep 2017 04:39:50 +0000 (00:39 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/utils.c

index 7cc68d8d2cead89e57fef020fc559950fe5c7a06..2d159744eb2fec7a3942168a7737475f7d38db7f 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");