Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/posix/wordexp.c')
-rw-r--r--newlib/libc/posix/wordexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/posix/wordexp.c b/newlib/libc/posix/wordexp.c
index bfdb63fd0..a5a97dbdd 100644
--- a/newlib/libc/posix/wordexp.c
+++ b/newlib/libc/posix/wordexp.c
@@ -143,8 +143,8 @@ wordexp(const char *words, wordexp_t *pwordexp, int flags)
pwordexp->we_wordv[pwordexp->we_wordc + offs + i] = NULL;
pwordexp->we_wordc += num_words;
- close(fd[0]);
- close(fd_err[0]);
+ fclose(f);
+ fclose(f_err);
/* Wait for child to finish. */
waitpid (pid, NULL, 0);