summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-07-28 03:22:14 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-07-28 03:22:14 (GMT)
commit5f8a9d5dd27481f422608adfaeb9a860b7ba0f9a (patch)
tree973f47e37e3f321bc6be2b17c25157d5ecb74238 /src
parentd9235366bb08ae9decd6f7b9d09fd7607e988fb4 (diff)
downloadhdf5-5f8a9d5dd27481f422608adfaeb9a860b7ba0f9a.zip
hdf5-5f8a9d5dd27481f422608adfaeb9a860b7ba0f9a.tar.gz
hdf5-5f8a9d5dd27481f422608adfaeb9a860b7ba0f9a.tar.bz2
[svn-r8963] Purpose:
Bug fix Description: Allow I/O on extendible chunked datasets with (currently) zero-sized dimensions to proceed harmlessly instead of dumping core on an assertion. Solution: Removed assertion and added checks to avoid problem situation in H5TB_end Platforms tested: FreeBSD 4.10 (sleipnir) w/ & w/o parallel Too minor to require h5committest
Diffstat (limited to 'src')
-rw-r--r--src/H5TB.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5TB.c b/src/H5TB.c
index c223747..f26a544 100644
--- a/src/H5TB.c
+++ b/src/H5TB.c
@@ -1300,11 +1300,11 @@ H5TB_end(H5TB_NODE * root, int side)
{
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_end);
- assert(root);
assert(side==LEFT || side==RIGHT);
- while (HasChild(root, side))
- root = root->link[side];
+ if(root)
+ while (HasChild(root, side))
+ root = root->link[side];
FUNC_LEAVE_NOAPI(root);
} /* end H5TB_end() */