summaryrefslogtreecommitdiffstats
path: root/src/H5Shyper.c
diff options
context:
space:
mode:
authorPeter Cao <xcao@hdfgroup.org>2010-01-08 19:34:19 (GMT)
committerPeter Cao <xcao@hdfgroup.org>2010-01-08 19:34:19 (GMT)
commit73508da070ec8a922605a964c572c60b9a5fa96b (patch)
treedbd721757418a69b6d4521c1cfd5fd376d63c259 /src/H5Shyper.c
parent984511ef0ad3d2596ee32cb56594f7d903bbdd90 (diff)
downloadhdf5-73508da070ec8a922605a964c572c60b9a5fa96b.zip
hdf5-73508da070ec8a922605a964c572c60b9a5fa96b.tar.gz
hdf5-73508da070ec8a922605a964c572c60b9a5fa96b.tar.bz2
[svn-r18086] fixed coverity #28, check curr_span not null before use it at if(curr_span && (io_bytes_left==0 || curr_seq>=maxseq))
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 */