File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1212 * Copyright (c) 2008-2015 University of Houston. All rights reserved.
1313 * Copyright (c) 2015 Research Organization for Information Science
1414 * and Technology (RIST). All rights reserved.
15+ * Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
1516 * $COPYRIGHT$
1617 *
1718 * Additional copyrights may follow
@@ -600,14 +601,14 @@ int mca_io_ompio_file_get_info (ompi_file_t *fh,
600601 int ret = OMPI_SUCCESS ;
601602 ompi_info_t * info = NULL ;
602603
603- if ( MPI_INFO_NULL == fh -> f_info ) {
604- * info_used = MPI_INFO_NULL ;
604+ info = OBJ_NEW (ompi_info_t );
605+ if (NULL == info ) {
606+ return MPI_ERR_INFO ;
605607 }
606- else {
607- info = OBJ_NEW (ompi_info_t );
608+ if (MPI_INFO_NULL != fh -> f_info ) {
608609 ret = ompi_info_dup (fh -> f_info , & info );
609- * info_used = info ;
610610 }
611+ * info_used = info ;
611612
612613 return ret ;
613614}
You can’t perform that action at this time.
0 commit comments