Fix warning

This commit is contained in:
Eric Andersen 2002-10-22 22:15:33 +00:00
parent 080ddc1c19
commit 09da627a23

View 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) {