summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
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);