summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2016-08-08 18:46:21 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2016-08-08 18:46:21 (GMT)
commit297268f23869223e5338a661fe6ed8957ffa3729 (patch)
tree7138f585d398ea4812cfa7b272957a3461220432 /src
parent4d358ef0afa1e9ffef8351031242710080389eff (diff)
downloadhdf5-297268f23869223e5338a661fe6ed8957ffa3729.zip
hdf5-297268f23869223e5338a661fe6ed8957ffa3729.tar.gz
hdf5-297268f23869223e5338a661fe6ed8957ffa3729.tar.bz2
[svn-r30264] Fixed an issue that could occur when using H5Pset_alignment where a block could
be unaligned, causing an assertion failure. Tested: koala, ostrich, jelly (h5committest), ummon
Diffstat (limited to 'src')
-rw-r--r--src/H5MFaggr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5MFaggr.c b/src/H5MFaggr.c
index f2c5936..f9bad97 100644
--- a/src/H5MFaggr.c
+++ b/src/H5MFaggr.c
@@ -201,7 +201,7 @@ HDfprintf(stderr, "%s: aggr = {%a, %Hu, %Hu}\n", FUNC, aggr->addr, aggr->tot_siz
alignment = 0; /* no alignment */
/* Generate fragment if aggregator is mis-aligned */
- if(alignment && aggr->addr > 0 && aggr->size > 0 && (aggr_mis_align = (aggr->addr + H5FD_get_base_addr(f->shared->lf)) % alignment)) {
+ if(alignment && aggr->addr > 0 && (aggr_mis_align = (aggr->addr + H5FD_get_base_addr(f->shared->lf)) % alignment)) {
aggr_frag_addr = aggr->addr;
aggr_frag_size = alignment - aggr_mis_align;
} /* end if */