summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2012-04-19 21:38:07 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2012-04-19 21:38:07 (GMT)
commit41b9ce962af276c0bca218dcf8eceb0726f9c4cb (patch)
tree256ac504111135411062b013979a22ebfb815d19
parenta07c8f924703bdf3d1654b59cabf847f5d0f2683 (diff)
downloadhdf5-41b9ce962af276c0bca218dcf8eceb0726f9c4cb.zip
hdf5-41b9ce962af276c0bca218dcf8eceb0726f9c4cb.tar.gz
hdf5-41b9ce962af276c0bca218dcf8eceb0726f9c4cb.tar.bz2
[svn-r22300] Purpose:
Fix for HDFFV-8001 - h5unjam: segfault when used -V (show version) option Description: h5unjam has an option '-V' to display version information. "h5unjam -V" caused segfulat for 1.8.9 pre-release. Tested: jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Windows (32-LE cmake), Cmake (jam)
-rw-r--r--release_docs/RELEASE.txt2
-rw-r--r--tools/h5jam/h5unjam.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt
index 948eb2b..88ac2ba 100644
--- a/release_docs/RELEASE.txt
+++ b/release_docs/RELEASE.txt
@@ -696,6 +696,8 @@ Bug Fixes since HDF5-1.8.0 release
Tools
-----
+ - h5unjam: Fixed sefgault when used -V (show version) option.
+ HDFFV-8001 (JKM 2012/04/19)
- h5repack: Fixed a failure when change the chunk size of a specified
chunked dataset with unlimited max dims. HDFFV-7993 (JKM 2012/04/11)
- h5diff: Fixed failure for comparing same named object with different
diff --git a/tools/h5jam/h5unjam.c b/tools/h5jam/h5unjam.c
index 4751dad..c304045 100644
--- a/tools/h5jam/h5unjam.c
+++ b/tools/h5jam/h5unjam.c
@@ -243,6 +243,9 @@ main(int argc, const char *argv[])
H5Eget_auto2(H5E_DEFAULT, &func, &edata);
H5Eset_auto2(H5E_DEFAULT, NULL, NULL);
+ /* Initialize h5tools lib */
+ h5tools_init();
+
parse_command_line(argc, argv);
if (input_file == NULL) {