From: Christian Brauner Date: Sun, 10 Sep 2017 06:09:52 +0000 (+0200) Subject: utils: lxc_popen() remove dead assignments X-Git-Tag: lxc-1.0.11~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a43c2203998ae1cb1d967565015b04dafda4b3d7;p=thirdparty%2Flxc.git utils: lxc_popen() remove dead assignments Signed-off-by: Christian Brauner --- diff --git a/src/lxc/utils.c b/src/lxc/utils.c index 9f32f334b..922595c40 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -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");