Minor fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15743 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-01-28 07:38:35 +00:00
parent 460cd690de
commit 17ac680236
5 changed files with 29 additions and 3 deletions

View file

@ -1978,7 +1978,10 @@ static NSString *endMarker = @"At end of incremental parse";
int newVal = (yesno == YES) ? 1 : 0;
xmlGetFeature((xmlParserCtxtPtr)lib, "substitute entities", (void*)&oldVal);
xmlSetFeature((xmlParserCtxtPtr)lib, "substitute entities", (void*)&newVal);
if (xmlSetFeature((xmlParserCtxtPtr)lib, "substitute entities",
(void*)&newVal) < 0)
[NSException raise: NSInternalInconsistencyException
format: @"Unable to set substituteEntities"];
return (oldVal == 1) ? YES : NO;
}