changeset 2461:dea23be6fae5

added minor change to get the reference count for recursion 0. hdf5 is supposed to do that!!!!
author baghdadi <baghdadi>
date Thu, 04 Sep 2008 16:13:25 +0000
parents c9ae5b32fed6
children 588e08253889
files libsrc2/grpattr.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libsrc2/grpattr.c
+++ b/libsrc2/grpattr.c
@@ -86,7 +86,7 @@
             r = H5Gget_objtype_by_idx(data->frame_ptr->grp_id,
                                       data->frame_ptr->grp_idx);
         } H5E_END_TRY;
- 
+        r--;
         if (r < 0) {
 
             /* End of this group, need to pop the frame. */
@@ -103,6 +103,7 @@
             data->frame_ptr->grp_idx++;
             /* If the object is a group, we need to recurse into it.
              */
+            r = 1;
             if (r == H5G_GROUP) {
                 char tmp[256];
                 int l;