summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-08-23 19:45:15 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-08-23 19:45:15 (GMT)
commit56f532b1c6263035e38fc9b4845a0b312f9b0f9a (patch)
tree412272b5fe901dc64dabe30950364e18832652ef /tools/lib
parent8599fdd237a0f571715d3c3e92f76849b6adddc0 (diff)
parent65209ee5d526b89e0f21ef797acedb062e4941b0 (diff)
downloadhdf5-56f532b1c6263035e38fc9b4845a0b312f9b0f9a.zip
hdf5-56f532b1c6263035e38fc9b4845a0b312f9b0f9a.tar.gz
hdf5-56f532b1c6263035e38fc9b4845a0b312f9b0f9a.tar.bz2
Merge pull request #638 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_10 to hdf5_1_10
* commit '65209ee5d526b89e0f21ef797acedb062e4941b0': HDFFV-10188 Force non-native type description HDFFV-10188 merge typo fix HDFFV-10188 add copy of test files HDFFV-10188 merge fix and tests from develop
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;