diff options
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -168,7 +168,8 @@ FILE *supplied_fp; if (dodup) fd = dup(fd); if (!(fp = fdopen(fd,mode))) - close(fd); + if (dodup) + close(fd); } } else { |