diff options
Diffstat (limited to 'tempfile.c')
-rw-r--r-- | tempfile.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tempfile.c b/tempfile.c index 2990c92424..ffcc272375 100644 --- a/tempfile.c +++ b/tempfile.c @@ -247,12 +247,8 @@ int close_tempfile(struct tempfile *tempfile) tempfile->fd = -1; if (fp) { tempfile->fp = NULL; - - /* - * Note: no short-circuiting here; we want to fclose() - * in any case! - */ - err = ferror(fp) | fclose(fp); + err = ferror(fp); + err |= fclose(fp); } else { err = close(fd); } |