Skip to content

Commit df4235a

Browse files
authored
Merge pull request #11109 from drwootton/undefined_eof_offset
Fix undefined file offset in mca_io_ompio_file_seek.
2 parents 4b39d07 + 216950d commit df4235a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/io/ompio/io_ompio_file_open.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ int mca_io_ompio_file_seek (ompi_file_t *fh,
443443
{
444444
int ret = OMPI_SUCCESS;
445445
mca_common_ompio_data_t *data;
446-
OMPI_MPI_OFFSET_TYPE offset, temp_offset, temp_offset2;
446+
OMPI_MPI_OFFSET_TYPE offset, temp_offset2;
447+
OMPI_MPI_OFFSET_TYPE temp_offset = 0;
447448

448449
data = (mca_common_ompio_data_t *) fh->f_io_selected_data;
449450

0 commit comments

Comments
 (0)