utils: lxc_popen() remove dead assignments

parent ad0b79f0
...@@ -494,7 +494,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command) ...@@ -494,7 +494,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
int child_std_end = STDOUT_FILENO; int child_std_end = STDOUT_FILENO;
close(parent_end); close(parent_end);
parent_end = -1;
if (child_end != child_std_end) { if (child_end != child_std_end) {
/* dup2() doesn't dup close-on-exec flag */ /* dup2() doesn't dup close-on-exec flag */
...@@ -533,7 +532,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command) ...@@ -533,7 +532,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
/* parent */ /* parent */
close(child_end); close(child_end);
child_end = -1;
if (child_pid < 0) { if (child_pid < 0) {
ERROR("fork failure"); ERROR("fork failure");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment