summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2011-06-07 04:36:06 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2011-06-07 04:36:06 (GMT)
commit3d81ace5d24a30822095d87e377a88898f1fb09f (patch)
treeb97ac979c60d07aae931c5ae8668df0921d2e424 /hl
parent99030cf45c9f6a804e4a22b1af38b872f06396cb (diff)
downloadhdf5-3d81ace5d24a30822095d87e377a88898f1fb09f.zip
hdf5-3d81ace5d24a30822095d87e377a88898f1fb09f.tar.gz
hdf5-3d81ace5d24a30822095d87e377a88898f1fb09f.tar.bz2
[svn-r20938] Description: Reverted to revision 20904 to bring the file back in
line with the trunk which had a later revision of the same section of code.
Diffstat (limited to 'hl')
-rw-r--r--hl/src/H5DS.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c
index 16ab14f..379b220 100644
--- a/hl/src/H5DS.c
+++ b/hl/src/H5DS.c
@@ -813,10 +813,8 @@ herr_t H5DSdetach_scale(hid_t did,
/* same object, reset. we want to detach only for this DIM */
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(ii < nelmts-1)
- dsbuf[ii] = dsbuf[nelmts-1];
+ /* copy the last one to replace the one which is found */
+ dsbuf[ii] = dsbuf[nelmts-1];
nelmts--;
found_dset=1;
break;