summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2010-01-04 20:50:00 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2010-01-04 20:50:00 (GMT)
commit54fd70764cad06c5f0157f0814d5eb38520f13a1 (patch)
treeab201f5b2c5da674de3524f41e404b98b08c93cc /test/links.c
parent2cedbfab13f08e2b7e523e9bceab5c354ab101d0 (diff)
downloadhdf5-54fd70764cad06c5f0157f0814d5eb38520f13a1.zip
hdf5-54fd70764cad06c5f0157f0814d5eb38520f13a1.tar.gz
hdf5-54fd70764cad06c5f0157f0814d5eb38520f13a1.tar.bz2
[svn-r18063] Fix bug in links.c which occurs when zlib is disabled. This was fixed in the
trunk in r17751, but was not ported to 1.8 because that feature (compress group fheap) had not beed added to 1.8 yet. This fix should have been ported to the cgfh branch at the time, but it was overlooked. Tested: Fedora (too small for commit test)
Diffstat (limited to 'test/links.c')
-rw-r--r--test/links.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/links.c b/test/links.c
index e793b39..c2d9249 100644
--- a/test/links.c
+++ b/test/links.c
@@ -8951,7 +8951,7 @@ link_filters(hid_t fapl, hbool_t new_format)
|| filter_config_out != (H5Z_FILTER_CONFIG_ENCODE_ENABLED
| H5Z_FILTER_CONFIG_DECODE_ENABLED))
TEST_ERROR
- if(H5Pget_filter2(gcpl2, 2, &flags_out, &cd_nelmts, &cd_value_out, (size_t)24,
+ if(H5Pget_filter2(gcpl2, nfilters - 1, &flags_out, &cd_nelmts, &cd_value_out, (size_t)24,
name_out, &filter_config_out) < 0)
TEST_ERROR
if(flags_out != 0 || cd_value_out != cd_value