aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 435379de2..4bb05f248 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -408,7 +408,8 @@ char *xasprintf(const char *format, ...)
408void xprint_and_close_file(FILE *file) 408void xprint_and_close_file(FILE *file)
409{ 409{
410 // copyfd outputs error messages for us. 410 // copyfd outputs error messages for us.
411 if (bb_copyfd_eof(fileno(file), 1) == -1) exit(bb_default_error_retval); 411 if (bb_copyfd_eof(fileno(file), 1) == -1)
412 exit(bb_default_error_retval);
412 413
413 fclose(file); 414 fclose(file);
414} 415}