summaryrefslogtreecommitdiffstats
path: root/tools/h5repack
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-02-24 21:14:47 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-02-24 21:14:47 (GMT)
commit202c36682b47239079f547f274fe5d4e9f78f27b (patch)
treeb8b5ea94e4017b9588795a93a6de23a3ca33ab1c /tools/h5repack
parent2dffa66ef78426ea1eef3aaa2d5abcb11d0c26f8 (diff)
downloadhdf5-202c36682b47239079f547f274fe5d4e9f78f27b.zip
hdf5-202c36682b47239079f547f274fe5d4e9f78f27b.tar.gz
hdf5-202c36682b47239079f547f274fe5d4e9f78f27b.tar.bz2
[svn-r21985] Tools must call h5tools_init before command_line parsing or using tools_mesg functions.
Tools library uses alais variables for stdout, stderr and tools library uses HDfprintf() functions. Tested: local linux
Diffstat (limited to 'tools/h5repack')
-rw-r--r--tools/h5repack/h5repack_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/h5repack/h5repack_main.c b/tools/h5repack/h5repack_main.c
index f0094d5..15b57b0 100644
--- a/tools/h5repack/h5repack_main.c
+++ b/tools/h5repack/h5repack_main.c
@@ -106,6 +106,9 @@ int main(int argc, const char **argv)
h5tools_setprogname(PROGRAMNAME);
h5tools_setstatus(EXIT_SUCCESS);
+ /* Initialize h5tools lib */
+ h5tools_init();
+
/* update hyperslab buffer size from H5TOOLS_BUFSIZE env if exist */
if ( h5tools_getenv_update_hyperslab_bufsize() < 0)
HDexit(EXIT_FAILURE);