mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
mproved MacOS-X compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14323 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
86b2121e5d
commit
c3fd0e813f
3 changed files with 18 additions and 11 deletions
|
@ -894,7 +894,15 @@ static void unescape(const char *from, char * to)
|
|||
}
|
||||
}
|
||||
|
||||
if (base != 0
|
||||
if (buf->isFile == YES)
|
||||
{
|
||||
buf->user = 0;
|
||||
buf->password = 0;
|
||||
buf->host = "localhost";
|
||||
buf->port = 0;
|
||||
buf->isGeneric = YES;
|
||||
}
|
||||
else if (base != 0
|
||||
&& buf->user == 0 && buf->password == 0
|
||||
&& buf->host == 0 && buf->port == 0)
|
||||
{
|
||||
|
@ -1203,7 +1211,7 @@ static void unescape(const char *from, char * to)
|
|||
/*
|
||||
* If this scheme is from a URL without generic format, there is no path.
|
||||
*/
|
||||
if (myData->isGeneric == YES || myData->isFile == YES)
|
||||
if (myData->isGeneric == YES)
|
||||
{
|
||||
unsigned int len = (_baseURL ? strlen(baseData->path) : 0)
|
||||
+ strlen(myData->path) + 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue