Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 9992d56

Browse files
committed
Merge pull request #916 from ggouaillardet/topic/v2.x/ompio_zero_file_view
correctly set all variables storing information on the file pointer p…
2 parents ea3f71a + 1de086d commit 9992d56

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
@@ -104,6 +104,8 @@ int mca_io_ompio_set_view_internal(mca_io_ompio_file_t *fh,
104104
fh->f_disp = disp;
105105
fh->f_offset = disp;
106106
fh->f_total_bytes = 0;
107+
fh->f_index_in_file_view=0;
108+
fh->f_position_in_file_view=0;
107109

108110
ompi_io_ompio_decode_datatype (fh,
109111
newfiletype,

0 commit comments

Comments
 (0)