diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-07-24 15:49:20 -0400 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-07-24 15:49:20 -0400 |
commit | 91f979adfcc3c19bec24fc5272c23c065ba3040b (patch) | |
tree | 47b9bb9684dd17ea57d5979764b60cecc934d14c /interpret.h | |
parent | 412c272389116f18218148c7a84c0486ad814051 (diff) | |
download | egawk-91f979adfcc3c19bec24fc5272c23c065ba3040b.tar.gz egawk-91f979adfcc3c19bec24fc5272c23c065ba3040b.tar.bz2 egawk-91f979adfcc3c19bec24fc5272c23c065ba3040b.zip |
Bug fix for I/O errors in the middle of a file.
Diffstat (limited to 'interpret.h')
-rw-r--r-- | interpret.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interpret.h b/interpret.h index 27f194ae..ff9ba768 100644 --- a/interpret.h +++ b/interpret.h @@ -1191,7 +1191,7 @@ match_re: JUMPTO(ni); } - if (inrec(curfile, & errcode) != 0) { + if (! inrec(curfile, & errcode)) { if (errcode > 0 && (do_traditional || ! pc->has_endfile)) fatal(_("error reading input file `%s': %s"), curfile->public.name, strerror(errcode)); |