diff options
Diffstat (limited to 'lib/fs.c')
-rw-r--r-- | lib/fs.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -710,7 +710,10 @@ static void close_proc(void *ud) { } static void close_file(void *ud) { - fclose((FILE *)ud); + FILE *fp = ud; + + if (fp != stdin && fp != stdout && fp != stderr) + fclose(fp); } static void close_dir(void *ud) { |