summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-28 07:20:19 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-28 07:20:19 +0000
commite852fe76304b8eb2216cf524c1bbbe7cbd9517ac (patch)
tree32753959ec36097f3b0ead36346d11877aad5cfd /libgfortran
parentc823ae53a4ba282a72f652f63f32fb0e159050fb (diff)
downloadgcc-e852fe76304b8eb2216cf524c1bbbe7cbd9517ac.tar.gz
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25550 * io/file_pos.c (st_rewind): Reset bytes left so no error occurs in next_record_r. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109101 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/file_pos.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 65be7e725c6..c9fdb6bc30c 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,5 +1,11 @@
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+ PR libgfortran/25550
+ * io/file_pos.c (st_rewind): Reset bytes left so no error occurs in
+ next_record_r.
+
+2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
PR libgfortran/25419
* io/list_read.c (list_formatted_read_scalar): Allow comma to return a
null value (default).
diff --git a/libgfortran/io/file_pos.c b/libgfortran/io/file_pos.c
index 3d7dd9ab8b6..d9ac1e7f7ed 100644
--- a/libgfortran/io/file_pos.c
+++ b/libgfortran/io/file_pos.c
@@ -255,6 +255,7 @@ st_rewind (st_parameter_filepos *fpp)
u->endfile = NO_ENDFILE;
u->current_record = 0;
+ u->bytes_left = 0;
test_endfile (u);
}
/* Update position for INQUIRE. */