Skip to content

Commit 46c20a1

Browse files
edgargabrielggouaillardet
authored andcommitted
correctly set all variables storing information on the file pointer position to zero when setting the file view
1 parent 12dad8b commit 46c20a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ompi/mca/io/ompio/io_ompio_file_set_view.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ int mca_io_ompio_set_view_internal(mca_io_ompio_file_t *fh,
105105
fh->f_disp = disp;
106106
fh->f_offset = disp;
107107
fh->f_total_bytes = 0;
108+
fh->f_index_in_file_view=0;
109+
fh->f_position_in_file_view=0;
108110

109111
ompi_io_ompio_decode_datatype (fh,
110112
newfiletype,

0 commit comments

Comments
 (0)