summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5B.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5B.c b/src/H5B.c
index acb3079..e539907 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -1564,7 +1564,7 @@ H5B_iterate (H5F_t *f, const H5B_class_t *type, haddr_t addr, void *udata)
"memory allocation failed");
}
for (cur_addr=addr, ret_value=0;
- H5F_addr_defined(cur_addr);
+ H5F_addr_defined(cur_addr) && !ret_value;
cur_addr=next_addr) {
/*