git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13589 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-05-04 05:39:48 +00:00
parent ad8afc168a
commit f7f46998d8
2 changed files with 5 additions and 3 deletions

View file

@ -4,6 +4,8 @@
was returning the current users home directory irrespective of the
user asked for. Now returns nil for other users ... should really
find some mechanism to determine home directories for other users.
* Source/Additions/GSXML.m: If ([_parseChunk:]) is called with nil
data, terminate parsing. Report by Alexander Malmberg.
2002-05-03 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -2084,7 +2084,7 @@ static NSString *endMarker = @"At end of incremental parse";
* Put saxHandler address in _private member, so we can retrieve
* the GSXMLHandler to use in our SAX C Functions.
*/
((xmlParserCtxtPtr)lib)->_private=saxHandler;
((xmlParserCtxtPtr)lib)->_private = saxHandler;
}
return YES;
}
@ -2092,7 +2092,7 @@ static NSString *endMarker = @"At end of incremental parse";
- (void) _parseChunk: (NSData*)data
{
// nil data allowed
xmlParseChunk(lib, [data bytes], [data length], 0);
xmlParseChunk(lib, [data bytes], [data length], data == nil);
}
@end
@ -2127,7 +2127,7 @@ static NSString *endMarker = @"At end of incremental parse";
- (void) _parseChunk: (NSData*)data
{
htmlParseChunk(lib, [data bytes], [data length], 0);
htmlParseChunk(lib, [data bytes], [data length], data == nil);
}
@end