summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5repack/h5repack.c')
-rw-r--r--tools/h5repack/h5repack.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c
index 147b6db..a6a6989 100644
--- a/tools/h5repack/h5repack.c
+++ b/tools/h5repack/h5repack.c
@@ -178,8 +178,10 @@ int h5repack_addlayout(const char* str,
obj_list_t *obj_list=NULL; /*one object list for the -t and -c option entry */
int n_objs; /*number of objects in the current -t or -c option entry */
- int j;
pack_info_t pack; /*info about layout to extract from parse */
+ int j;
+
+ init_packobject(&pack);
if (options->all_layout==1){
printf("Error: Invalid layout input: all option \