mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
This commit is contained in:
parent
c8e9772237
commit
402c4277e1
@ -131,7 +131,7 @@ nc_uriparse(const char* uri0, NC_URI** nc_urip)
|
||||
host = p;
|
||||
|
||||
port = strchr(p,':');
|
||||
if(!strncmp(protocol,"file",4)) {
|
||||
if(strncmp(protocol,"file",4)) {
|
||||
if(port) {
|
||||
*port++ = '\0';
|
||||
}
|
||||
|
@ -189,9 +189,9 @@ ocuriparse(const char* uri0, OCURI** ocurip)
|
||||
|
||||
/* extract host and port */
|
||||
p = host;
|
||||
|
||||
port = strchr(p,':');
|
||||
if(!strncmp(protocol,"file",4)) {
|
||||
if(strncmp(protocol,"file",4)) {
|
||||
|
||||
if(port!=NULL)
|
||||
*port++ = '\0';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user