summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-08-16 20:01:29 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-08-16 20:01:29 (GMT)
commit164eee91cfdf18e870519099fbad388a6ccb85cf (patch)
tree1e240488bcfaea00233d404402de4834dec268df /tools/lib
parent46f8c941d7394d28befc660a7ab5532fa37a8e0f (diff)
downloadhdf5-164eee91cfdf18e870519099fbad388a6ccb85cf.zip
hdf5-164eee91cfdf18e870519099fbad388a6ccb85cf.tar.gz
hdf5-164eee91cfdf18e870519099fbad388a6ccb85cf.tar.bz2
HDFFV-10188 - Check for empty string first
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_ref.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/h5tools_ref.c b/tools/lib/h5tools_ref.c
index e000080..16a949d 100644
--- a/tools/lib/h5tools_ref.c
+++ b/tools/lib/h5tools_ref.c
@@ -164,7 +164,8 @@ haddr_t
ref_path_table_lookup(const char *thepath)
{
H5O_info_t oi;
-
+ if((HDstrlen(thepath) == 0) || (thepath == NULL))
+ return HADDR_UNDEF;
/* Allow lookups on the root group, even though it doesn't have any link info */
if(HDstrcmp(thepath, "/")) {
H5L_info_t li;