Fix warning
authorEric Andersen <andersen@codepoet.org>
Tue, 22 Oct 2002 22:15:33 +0000 (22:15 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 22 Oct 2002 22:15:33 +0000 (22:15 -0000)
shell/ash.c

index f0729ed4d4c6f64f6897a06acf829efeaaf18c0b..d20618d3cbf5c74a63b1237ee6795f266d470b25 100644 (file)
@@ -10877,6 +10877,7 @@ static void redirect(union node *redir, int flags)
                INTOFF;
                newfd = openredirect(n);
                if ((flags & REDIR_PUSH) && sv->renamed[fd] == EMPTY) {
+                       i = fd;
                        if (newfd == fd) {
                                try++;
                        } else if ((i = fcntl(fd, F_DUPFD, 10)) == -1) {