mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-05 16:20:10 +08:00
Use canonical path to derive name of dataset
This commit is contained in:
parent
09e0e04227
commit
2a66599276
@ -155,7 +155,7 @@ name_path(const char *path)
|
||||
size_t cplen = 0;
|
||||
char* base = NULL;
|
||||
|
||||
if((cvtpath = NCpathcvt(path))==NULL)
|
||||
if (NCpathcanonical(path, &cvtpath) || cvtpath==NULL)
|
||||
return NULL;
|
||||
|
||||
/* See if this is a url */
|
||||
|
Loading…
Reference in New Issue
Block a user