summaryrefslogtreecommitdiffstats
path: root/src/H5Fistore.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-11-27 19:44:12 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-11-27 19:44:12 (GMT)
commit2dad38a26cfcc36ce3fbc399cbc7f446fb08afcd (patch)
tree76d834bb22214f3bd771ad993c09273391370808 /src/H5Fistore.c
parent77e6a52f9a5b80e125b603d5752e3eb86568726f (diff)
downloadhdf5-2dad38a26cfcc36ce3fbc399cbc7f446fb08afcd.zip
hdf5-2dad38a26cfcc36ce3fbc399cbc7f446fb08afcd.tar.gz
hdf5-2dad38a26cfcc36ce3fbc399cbc7f446fb08afcd.tar.bz2
[svn-r4656] Purpose:
Bug fix Description: Moved some executable code out of an assert() and check the results of the code with an assert(). Platforms tested: Solaris 2.6 (baldric)
Diffstat (limited to 'src/H5Fistore.c')
-rw-r--r--src/H5Fistore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5Fistore.c b/src/H5Fistore.c
index d016961..ae7977f 100644
--- a/src/H5Fistore.c
+++ b/src/H5Fistore.c
@@ -1506,7 +1506,8 @@ H5F_istore_lock(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout,
assert(H5I_GENPROP_LST==H5I_get_type(dxpl_id));
assert(TRUE==H5P_isa_class(dxpl_id,H5P_DATASET_XFER));
- assert((plist=H5I_object(dxpl_id))!=NULL);
+ plist=H5I_object(dxpl_id);
+ assert(plist!=NULL);
H5P_get(plist,H5D_XFER_BTREE_SPLIT_RATIO_NAME,&(ent->split_ratios));
/* Add it to the cache */
@@ -1653,7 +1654,8 @@ H5F_istore_unlock(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout,
assert(H5I_GENPROP_LST==H5I_get_type(dxpl_id));
assert(TRUE==H5P_isa_class(dxpl_id,H5P_DATASET_XFER));
- assert((plist=H5I_object(dxpl_id))!=NULL);
+ plist=H5I_object(dxpl_id);
+ assert(plist!=NULL);
H5P_get(plist,H5D_XFER_BTREE_SPLIT_RATIO_NAME,&(x.split_ratios));
H5F_istore_flush_entry (f, &x, TRUE);