mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
Fix warning
This commit is contained in:
parent
080ddc1c19
commit
09da627a23
@ -10877,6 +10877,7 @@ static void redirect(union node *redir, int flags)
|
|||||||
INTOFF;
|
INTOFF;
|
||||||
newfd = openredirect(n);
|
newfd = openredirect(n);
|
||||||
if ((flags & REDIR_PUSH) && sv->renamed[fd] == EMPTY) {
|
if ((flags & REDIR_PUSH) && sv->renamed[fd] == EMPTY) {
|
||||||
|
i = fd;
|
||||||
if (newfd == fd) {
|
if (newfd == fd) {
|
||||||
try++;
|
try++;
|
||||||
} else if ((i = fcntl(fd, F_DUPFD, 10)) == -1) {
|
} else if ((i = fcntl(fd, F_DUPFD, 10)) == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user