summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r--tools/h5ls.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index 9ef01e5..fec6394 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -1914,10 +1914,9 @@ main (int argc, char *argv[])
H5G_stat_t sb;
iter_t iter;
static char root_name[] = "/";
- char drivername[50];
+ char drivername[50];
- memset(drivername, '\0',50);
/* Build display table */
DISPATCH(H5G_DATASET, "Dataset", H5Dopen, H5Dclose,
dataset_list1, dataset_list2);
@@ -2093,9 +2092,7 @@ main (int argc, char *argv[])
file = -1;
while (fname && *fname) {
-
- file = H5ToolsFopen(fname, drivername);
-
+ file = h5dump_fopen(fname, drivername, sizeof drivername);
if (file>=0) {
if (verbose_g) {
printf("Opened \"%s\" with %s driver.\n",