From 164eee91cfdf18e870519099fbad388a6ccb85cf Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Wed, 16 Aug 2017 15:01:29 -0500 Subject: HDFFV-10188 - Check for empty string first --- tools/lib/h5tools_ref.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v0.12