summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-09-03 00:15:57 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-09-03 00:15:57 (GMT)
commitcb0a0eb41eb61e75ddb7a10532e910394babe995 (patch)
treec0122b29efeacfc3d8da4c8b07bdd7ce0065db9e /src/H5P.c
parentd0c5506d95aee19238c21d5cde4ee19ba0539f2a (diff)
downloadhdf5-cb0a0eb41eb61e75ddb7a10532e910394babe995.zip
hdf5-cb0a0eb41eb61e75ddb7a10532e910394babe995.tar.gz
hdf5-cb0a0eb41eb61e75ddb7a10532e910394babe995.tar.bz2
[svn-r1627] Cleanup some minor bugs in the MPIO file-driver ported by Robb.
It is working now. Still need to tie up some loose ends.
Diffstat (limited to 'src/H5P.c')
-rw-r--r--src/H5P.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 79cca42..77128bd 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -1339,8 +1339,8 @@ H5Pset_driver(hid_t plist_id, hid_t driver_id, const void *driver_info)
}
/* Remove old driver */
- assert(dxpl->driver_id>=0);
- H5FD_dxpl_free(dxpl->driver_id, dxpl->driver_info);
+ if (dxpl->driver_id>=0)
+ H5FD_dxpl_free(dxpl->driver_id, dxpl->driver_info);
/* Add new driver */
H5I_inc_ref(driver_id);