summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorEric Andersen2002-10-22 22:15:33 +0000
committerEric Andersen2002-10-22 22:15:33 +0000
commit09da627a23259d6fcb47ee9b2bd4fde395779ab0 (patch)
tree9cbb94b66a7e17f87573a08d8683acce1f6cad4f /shell
parent080ddc1c199743fe2f46db5e877157cff602c93f (diff)
downloadbusybox-09da627a23259d6fcb47ee9b2bd4fde395779ab0.zip
busybox-09da627a23259d6fcb47ee9b2bd4fde395779ab0.tar.gz
Fix warning
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index f0729ed..d20618d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -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) {