diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2012-11-01 20:12:01 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2012-11-01 20:12:01 (GMT) |
commit | a46c177ddfdb8578718eb3694811e634653c20de (patch) | |
tree | 219ff3377cd214ce9b282af02056651ca3df2611 /src/H5FDmpiposix.c | |
parent | 65597415a3faf5f68c5c638d6e65b45ce473b34b (diff) | |
download | hdf5-a46c177ddfdb8578718eb3694811e634653c20de.zip hdf5-a46c177ddfdb8578718eb3694811e634653c20de.tar.gz hdf5-a46c177ddfdb8578718eb3694811e634653c20de.tar.bz2 |
[svn-r23000] Description:
Bring r22998 from trunk to 1.8 branch:
Clean up warnings and bring changes from Coverity branch back to trunk:
r20451:
Fixed coverity 810
r20454:
Purpose: Fix coverity issue 816
Description: Modified various file drivers to always check the return value from
H5P_get_driver_info.
r20455:
Purpose: Cleanup fix for coverity issue 816
Description: Removed redundant check for "fa" in H5FD_core_open.
Tested on:
Mac OSX/64 10.8.2 (amazon) w/debug
(Too minor to require h5committest)
Diffstat (limited to 'src/H5FDmpiposix.c')
-rw-r--r-- | src/H5FDmpiposix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FDmpiposix.c b/src/H5FDmpiposix.c index 768548e..9cf8b45 100644 --- a/src/H5FDmpiposix.c +++ b/src/H5FDmpiposix.c @@ -600,8 +600,8 @@ H5FD_mpiposix_open(const char *name, unsigned flags, hid_t fapl_id, fa = &_fa; } /* end if */ else { - fa = H5P_get_driver_info(plist); - HDassert(fa); + if(NULL == (fa = (const H5FD_mpiposix_fapl_t *)H5P_get_driver_info(plist))) + HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, NULL, "bad VFL driver info") } /* end else */ /* Duplicate the communicator for use by this file. */ |