summaryrefslogtreecommitdiffstats
path: root/examples/h5_cmprss.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_cmprss.c')
-rw-r--r--examples/h5_cmprss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_cmprss.c b/examples/h5_cmprss.c
index 7557cf5..bb77e28 100644
--- a/examples/h5_cmprss.c
+++ b/examples/h5_cmprss.c
@@ -99,7 +99,7 @@ main()
for (i = 0; i < numfilt; i++) {
nelmts = 0;
- filter_type = H5Pget_filter2(plist_id, 0, &flags, &nelmts, NULL, 0, NULL, &filter_info);
+ filter_type = H5Pget_filter2(plist_id, i, &flags, &nelmts, NULL, 0, NULL, &filter_info);
printf("Filter Type: ");
switch (filter_type) {
case H5Z_FILTER_DEFLATE: