aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/io.c b/io.c
index 45b5015f..7930904d 100644
--- a/io.c
+++ b/io.c
@@ -590,16 +590,12 @@ inrec(IOBUF *iop, int *errcode)
if (cnt == EOF) {
retval = false;
- if (*errcode > 0)
- update_ERRNO_int(*errcode);
} else {
INCREMENT_REC(NR);
INCREMENT_REC(FNR);
set_record(begin, cnt);
- if (*errcode > 0) {
- update_ERRNO_int(*errcode);
+ if (*errcode > 0)
retval = false;
- }
}
return retval;