mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
HDFFV-10188 - Check for empty string first
This commit is contained in:
parent
46f8c941d7
commit
164eee91cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user