diff options
author | David Young <dyoung@hdfgroup.org> | 2020-05-19 19:55:06 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:37:22 (GMT) |
commit | 19a6976899d98735d792ccf1bd6c00d7e1fd49b2 (patch) | |
tree | c9156246bc48ea39175221a4e0ad1264c88dafed /tools | |
parent | dd319488239e0b39165cbe013162d9e975f0c9d3 (diff) | |
download | hdf5-19a6976899d98735d792ccf1bd6c00d7e1fd49b2.zip hdf5-19a6976899d98735d792ccf1bd6c00d7e1fd49b2.tar.gz hdf5-19a6976899d98735d792ccf1bd6c00d7e1fd49b2.tar.bz2 |
Make sure to initialize vfd_info.fname.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/src/h5stat/h5stat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/src/h5stat/h5stat.c b/tools/src/h5stat/h5stat.c index fb3d50d7..1a43d70 100644 --- a/tools/src/h5stat/h5stat.c +++ b/tools/src/h5stat/h5stat.c @@ -1812,11 +1812,14 @@ main(int argc, const char *argv[]) if(parse_command_line(argc, argv, &hand) < 0) goto done; + fname = argv[opt_ind]; + if (drivername) { h5tools_vfd_info_t vfd_info; vfd_info.info = NULL; vfd_info.name = drivername; + vfd_info.fname = fname; if (!HDstrcmp(drivername, drivernames[ROS3_VFD_IDX])) { #ifdef H5_HAVE_ROS3_VFD @@ -1841,8 +1844,6 @@ main(int argc, const char *argv[]) } } - fname = argv[opt_ind]; - if(enable_error_stack > 0) { H5Eset_auto2(H5E_DEFAULT, func, edata); H5Eset_auto2(H5tools_ERR_STACK_g, tools_func, tools_edata); |