From 4d6c3b23445f6280b15aafbe9b875ca51895767a Mon Sep 17 00:00:00 2001
From: andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Tue, 22 Oct 2002 22:15:33 +0000
Subject: Fix warning

git-svn-id: svn://busybox.net/trunk/busybox@5695 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 shell/ash.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'shell')

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-55-g6feb