summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2011-05-20 04:32:31 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2011-05-20 04:32:31 (GMT)
commitf9174cbd9d45c71744045981ada2a015239508b5 (patch)
tree2dba85cd5c166c4ba90caae808e72b5554fdb105
parenta558128a18e84189772dd2a84c481eab49751857 (diff)
downloadhdf5-f9174cbd9d45c71744045981ada2a015239508b5.zip
hdf5-f9174cbd9d45c71744045981ada2a015239508b5.tar.gz
hdf5-f9174cbd9d45c71744045981ada2a015239508b5.tar.bz2
[svn-r20870] Description: Fixed HDFFV-7605: Dim Scales APIs- error when unattaching dim. sacles
* Fixed Loop counter when removing object in dimension set with more then one scale. Tested: jam (intel and gnu)
-rw-r--r--hl/src/H5DS.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c
index 432a725..16ab14f 100644
--- a/hl/src/H5DS.c
+++ b/hl/src/H5DS.c
@@ -815,7 +815,7 @@ herr_t H5DSdetach_scale(hid_t did,
if(did_oi.fileno == tmp_oi.fileno && did_oi.addr == tmp_oi.addr) {
/* if we found not the last one, copy the last one to replace
the one which is found */
- if(i < nelmts-1)
+ if(ii < nelmts-1)
dsbuf[ii] = dsbuf[nelmts-1];
nelmts--;
found_dset=1;