mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Minor xmpath fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16768 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
225e2431c5
commit
594324c1dc
2 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2003-05-22 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/Additions/GSXML.m: ([GSXPathContext-evaluateExpression:])
|
||||||
|
Test for NULL return from libxml and return nil rather than trying
|
||||||
|
to dereference the null pointer.
|
||||||
|
|
||||||
2003-05-19 Adam Fedor <fedor@gnu.org>
|
2003-05-19 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Version 1.7.0.
|
* Version 1.7.0.
|
||||||
|
|
|
@ -3348,10 +3348,15 @@ fatalErrorFunction(void *ctx, const char *msg, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
res = xmlXPathCompiledEval (comp, ((xmlXPathContext*)_lib));
|
res = xmlXPathCompiledEval (comp, ((xmlXPathContext*)_lib));
|
||||||
|
if (res == NULL)
|
||||||
result = [GSXPathObject _newWithNativePointer: res context: self];
|
{
|
||||||
AUTORELEASE (result);
|
result = nil;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = [GSXPathObject _newWithNativePointer: res context: self];
|
||||||
|
AUTORELEASE (result);
|
||||||
|
}
|
||||||
xmlXPathFreeCompExpr (comp);
|
xmlXPathFreeCompExpr (comp);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue