summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-11-08 17:27:22 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-11-08 17:27:22 (GMT)
commit3b9e13a1b819584c91bfaa134536345a1460f44f (patch)
treeec15921ace74f90c89c989d5e75a970c2c573874 /tools/lib/h5diff.c
parent0a7424c7d0664b778be9d75db373793cb2f949c9 (diff)
downloadhdf5-3b9e13a1b819584c91bfaa134536345a1460f44f.zip
hdf5-3b9e13a1b819584c91bfaa134536345a1460f44f.tar.gz
hdf5-3b9e13a1b819584c91bfaa134536345a1460f44f.tar.bz2
TRILAB-82 fix coverity high-impact issues
Diffstat (limited to 'tools/lib/h5diff.c')
-rw-r--r--tools/lib/h5diff.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 28b1f00..594bf51 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -274,12 +274,15 @@ build_match_list (const char *objname1, trav_info_t *info1, const char *objname2
int cmp;
trav_table_t *table = NULL;
size_t idx;
+ int ret_value = 0;
h5difftrace("build_match_list start\n");
/* init */
trav_table_init(&table);
- if (table == NULL)
- H5TOOLS_INFO(H5E_tools_min_id_g, "Cannot create tarverse table");
+ if (table == NULL) {
+ H5TOOLS_INFO(H5E_tools_min_id_g, "Cannot create traverse table");
+ HGOTO_DONE(-1);
+ }
/*
* This is necessary for the case that given objects are group and
* have different names (ex: obj1 is /grp1 and obj2 is /grp5).
@@ -367,6 +370,7 @@ build_match_list (const char *objname1, trav_info_t *info1, const char *objname2
free_exclude_path_list (opts);
+done:
*table_out = table;
h5difftrace("build_match_list finish\n");
}