mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
tiny osx compatibility tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31531 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7795322965
commit
6a946ccbb2
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-10-19 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSURL.m: When making a relative file URL copy the host from
|
||||
the base URL for OSX compatibility.
|
||||
|
||||
2010-10-16 16:53-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* config/objc-common.g: Correct test. The previous version didn't
|
||||
|
|
|
@ -1131,9 +1131,13 @@ static unsigned urlAlign;
|
|||
{
|
||||
buf->user = 0;
|
||||
buf->password = 0;
|
||||
if (buf->host != 0 && *buf->host == 0)
|
||||
if (base != 0 && base->host != 0)
|
||||
{
|
||||
buf->host = 0;
|
||||
buf->host = base->host;
|
||||
}
|
||||
else if (buf->host != 0 && *buf->host == 0)
|
||||
{
|
||||
buf->host = 0;
|
||||
}
|
||||
buf->port = 0;
|
||||
buf->isGeneric = YES;
|
||||
|
|
Loading…
Reference in a new issue