mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +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
d6a8521c5e
commit
81620f8d4e
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>
|
2010-06-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSFFIInvocation.m:
|
* Source/GSFFIInvocation.m:
|
||||||
|
|
|
@ -1082,6 +1082,10 @@ static unsigned urlAlign;
|
||||||
* Store the path.
|
* Store the path.
|
||||||
*/
|
*/
|
||||||
buf->path = start;
|
buf->path = start;
|
||||||
|
if (0 == base && '\0' == *buf->path && NO == buf->pathIsAbsolute)
|
||||||
|
{
|
||||||
|
buf->hasNoPath = YES;
|
||||||
|
}
|
||||||
if (legal(buf->path, reserved) == NO)
|
if (legal(buf->path, reserved) == NO)
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
[NSException raise: NSInvalidArgumentException
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue