mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Minor documentation fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13901 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
90353c9acd
commit
91eb66c37a
2 changed files with 11 additions and 3 deletions
|
@ -4,6 +4,8 @@
|
|||
Release them on invalidation. Ensure timer is invalidated on
|
||||
deallocation. Documented timer methods.
|
||||
Changes based on bug report by Andy Ruder <aeruder@yahoo.com>
|
||||
* Source/NSURL.m: Fixed one possible nul pointer indirection,
|
||||
and added some comments about the internal data structure.
|
||||
|
||||
2002-06-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -53,14 +53,19 @@ function may be incorrect
|
|||
|
||||
NSString *NSURLFileScheme = @"file";
|
||||
|
||||
/*
|
||||
* Structure describing a URL.
|
||||
* All the char* fields may be NULL pointers, except path, which
|
||||
* is *always* non-null (though it may be an empty string).
|
||||
*/
|
||||
typedef struct {
|
||||
id absolute;
|
||||
id absolute; // Cache absolute string or nil
|
||||
char *scheme;
|
||||
char *user;
|
||||
char *password;
|
||||
char *host;
|
||||
char *port;
|
||||
char *path;
|
||||
char *path; // May never be NULL
|
||||
char *parameters;
|
||||
char *query;
|
||||
char *fragment;
|
||||
|
@ -580,7 +585,8 @@ static void unescape(const char *from, char * to)
|
|||
*ptr = tolower(*ptr);
|
||||
}
|
||||
}
|
||||
if (base != 0 && strcmp(base->scheme, buf->scheme) != 0)
|
||||
if (base != 0 && base->scheme != 0
|
||||
&& strcmp(base->scheme, buf->scheme) != 0)
|
||||
{
|
||||
[NSException raise: NSGenericException format:
|
||||
@"scheme of base and relative parts does not match"];
|
||||
|
|
Loading…
Reference in a new issue