OSX compat tweak

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30622 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-06-08 16:53:30 +00:00
parent 2b8d035def
commit 77aefa83e5
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-06-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSURL.m:
Return nil for -path if initialised with empty string ... OSX compat.
2010-06-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSFFIInvocation.m:

View file

@ -1082,6 +1082,10 @@ static unsigned urlAlign;
* Store the path.
*/
buf->path = start;
if (0 == base && '\0' == *buf->path && NO == buf->pathIsAbsolute)
{
buf->hasNoPath = YES;
}
if (legal(buf->path, reserved) == NO)
{
[NSException raise: NSInvalidArgumentException