summaryrefslogtreecommitdiffstats
path: root/src/H5Dcontig.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2012-03-13 04:19:46 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2012-03-13 04:19:46 (GMT)
commitc17a5d1278a43efc8b62c718f5897e4ec1ed82e9 (patch)
treeecbb6277dc6e40f442eac1ded3d0e02fd92fef92 /src/H5Dcontig.c
parent57295db6c750b6c8d148652b826d3a006f38e6aa (diff)
downloadhdf5-c17a5d1278a43efc8b62c718f5897e4ec1ed82e9.zip
hdf5-c17a5d1278a43efc8b62c718f5897e4ec1ed82e9.tar.gz
hdf5-c17a5d1278a43efc8b62c718f5897e4ec1ed82e9.tar.bz2
[svn-r22058] Description:
Better fix for zero-sized dataset error (r22053). Tested on: Mac OSX/64 10.7.3 (amazon) w/debug & parallel
Diffstat (limited to 'src/H5Dcontig.c')
-rw-r--r--src/H5Dcontig.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/H5Dcontig.c b/src/H5Dcontig.c
index bb10b77..674582d 100644
--- a/src/H5Dcontig.c
+++ b/src/H5Dcontig.c
@@ -494,11 +494,8 @@ H5D_contig_is_space_alloc(const H5O_storage_t *storage)
/* Sanity checks */
HDassert(storage);
- /* Set return value, indicating space is allocated when size is zero */
- if(0 == storage->u.contig.size)
- ret_value = TRUE;
- else
- ret_value = (hbool_t)H5F_addr_defined(storage->u.contig.addr);
+ /* Set return value */
+ ret_value = (hbool_t)H5F_addr_defined(storage->u.contig.addr);
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_contig_is_space_alloc() */