diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5dump.c | 3 | ||||
-rw-r--r-- | tools/h5ls.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c index dde74b5..f50f487 100644 --- a/tools/h5dump.c +++ b/tools/h5dump.c @@ -1267,6 +1267,9 @@ H5Eset_auto (NULL, NULL); exit(1); } +/*init the programtype var fromt he tools lib*/ + programtype = H5DUMP; + opts = malloc((argc/2) * sizeof (int)); opts[0] = -1; /* parse command line options */ diff --git a/tools/h5ls.c b/tools/h5ls.c index cf8e905..e008510 100644 --- a/tools/h5ls.c +++ b/tools/h5ls.c @@ -1741,6 +1741,9 @@ main (int argc, char *argv[]) DISPATCH(H5G_RAGGED, "Ragged Array", H5Gopen, H5Gclose, NULL, ragged_list2); + /*init the programtype var fromthe tools lib*/ + programtype = H5LS; + /* Name of this program without the path */ if ((progname=strrchr(argv[0], '/'))) progname++; else progname = argv[0]; |