summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_utils.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-12-06 17:00:14 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-12-06 17:00:14 (GMT)
commit49b662bd0d0ea818dd53bac407070a711f45ef03 (patch)
tree35f69557b245c68a7e44c7decb2992e4b25d6170 /tools/lib/h5tools_utils.c
parent9bea2a7ffbb51d14387fa71060ad6bafc8d443af (diff)
downloadhdf5-49b662bd0d0ea818dd53bac407070a711f45ef03.zip
hdf5-49b662bd0d0ea818dd53bac407070a711f45ef03.tar.gz
hdf5-49b662bd0d0ea818dd53bac407070a711f45ef03.tar.bz2
[svn-r13024]
fixed 2 initializations of char* with HDstrdup and HDcalloc info->prefix = HDcalloc(1, 1); fname = HDstrdup(argv[opt_ind]); some were exposed by compiler warnings
Diffstat (limited to 'tools/lib/h5tools_utils.c')
-rw-r--r--tools/lib/h5tools_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c
index 3dbafa5..e2b50b6 100644
--- a/tools/lib/h5tools_utils.c
+++ b/tools/lib/h5tools_utils.c
@@ -595,7 +595,7 @@ init_objs(hid_t fid, find_objs_t *info, table_t **group_table,
init_table(type_table);
/* Init the find_objs_t */
- info->prefix = (char *)"";
+ info->prefix = HDcalloc(1, 1);
info->group_table = *group_table;
info->type_table = *type_table;
info->dset_table = *dset_table;