summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5Shyper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index a9c247f..94bf5d6 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -5221,6 +5221,10 @@ H5S_hyper_select_iterate_mem_opt(H5S_sel_iter_t UNUSED *iter, void *buf, hid_t t
tmp_count[fast_dim]--;
} /* end while */
+ /* Check for getting out of iterator, we're done in the 1-D case */
+ if(ndims==1)
+ goto done; /* Yes, an evil goto.. :-) -QAK */
+
/* Work on other dimensions if necessary */
if(fast_dim>0 && user_ret==0) {
/* Reset the sequence and block counts */