release 016
[gregoa/bti.git] / bti.c
diff --git a/bti.c b/bti.c
index 4273d23..5f4a6cb 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -736,11 +736,11 @@ static int popenRWE(int *rwepipe, const char *exe, const char *const argv[])
                close(out[0]);
                close(err[0]);
                close(0);
-               dup(in[0]);
+               rc = dup(in[0]);
                close(1);
-               dup(out[1]);
+               rc = dup(out[1]);
                close(2);
-               dup(err[1]);
+               rc = dup(err[1]);
 
                execvp(exe, (char**)argv);
                exit(1);