summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-06-10 15:19:19 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-06-10 15:19:19 (GMT)
commit5f2b8eee135acaa09d5b6686e1abf472eb97ecc1 (patch)
treedbcfe97fc4bf475643229afc8eb35cc56fb80fae /src
parentc6d6257ba2652d0a7f09def693a23e5f7e126327 (diff)
downloadhdf5-5f2b8eee135acaa09d5b6686e1abf472eb97ecc1.zip
hdf5-5f2b8eee135acaa09d5b6686e1abf472eb97ecc1.tar.gz
hdf5-5f2b8eee135acaa09d5b6686e1abf472eb97ecc1.tar.bz2
[svn-r5560] Purpose:
Bug Fix for bug #789 Description: Creating a 1-D dataset region reference caused the library to hang (go into an infinite loop). Solution: Corrected algorithm for serializing hyperslab regions. Platforms tested: FreeBSD 4.5 (sleipnir)
Diffstat (limited to 'src')
-rw-r--r--src/H5Shyper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index 1d92137..1d14592 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -5152,6 +5152,8 @@ H5S_hyper_select_serialize (const H5S_t *space, uint8_t *buf)
temp_dim--;
} /* end while */
} /* end if */
+ else
+ break; /* Break out now, for 1-D selections */
/* Re-compute offset array */
for(i=0; i<ndims; i++) {