summaryrefslogtreecommitdiffstats
path: root/tools/src/h5repack
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-01-25 21:21:11 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-01-25 21:21:11 (GMT)
commitad906dc708fc803e8c5f17963fafa63591d3cc8d (patch)
tree1cde8b7293c19cd2bb18db3319b243137deb1167 /tools/src/h5repack
parent822caec9071019d02da869fe0c9b06f24d88c2d5 (diff)
downloadhdf5-ad906dc708fc803e8c5f17963fafa63591d3cc8d.zip
hdf5-ad906dc708fc803e8c5f17963fafa63591d3cc8d.tar.gz
hdf5-ad906dc708fc803e8c5f17963fafa63591d3cc8d.tar.bz2
Invalid position of declaration fixed.
Diffstat (limited to 'tools/src/h5repack')
-rw-r--r--tools/src/h5repack/h5repack_filters.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/src/h5repack/h5repack_filters.c b/tools/src/h5repack/h5repack_filters.c
index 123263c..3d9472a 100644
--- a/tools/src/h5repack/h5repack_filters.c
+++ b/tools/src/h5repack/h5repack_filters.c
@@ -338,9 +338,10 @@ int apply_filters(const char* name, /* object name from traverse list */
sm_nbytes = msize;
for (i = rank; i > 0; --i) {
+ hsize_t size = 0;
if(sm_nbytes == 0)
HGOTO_ERROR(FAIL, H5E_tools_min_id_g, "number of bytes per stripmine must be > 0");
- hsize_t size = H5TOOLS_BUFSIZE / sm_nbytes;
+ size = H5TOOLS_BUFSIZE / sm_nbytes;
if (size == 0) /* datum size > H5TOOLS_BUFSIZE */
size = 1;
sm_size[i - 1] = MIN(dims[i - 1], size);