From 09da627a23259d6fcb47ee9b2bd4fde395779ab0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 22 Oct 2002 22:15:33 +0000 Subject: Fix warning --- shell/ash.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shell/ash.c') diff --git a/shell/ash.c b/shell/ash.c index f0729ed4d..d20618d3c 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) { -- cgit v1.2.3