summaryrefslogtreecommitdiffstats
path: root/src/H5Shyper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Shyper.c')
-rw-r--r--src/H5Shyper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index f55135f..9e8bb14 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -7545,7 +7545,7 @@ partial_done: /* Yes, goto's are evil, so sue me... :-) */
} /* end while */
/* Check if we are done */
- if(io_bytes_left==0 || curr_seq>=maxseq) {
+ if(curr_span && (io_bytes_left==0 || curr_seq>=maxseq)) {
abs_arr[fast_dim]=curr_span->low+(span_size/elem_size);
/* Check if we are still within the span */