mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
2b8d035def
commit
77aefa83e5
2 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue