Source

perl-XML-LibXML / xpath.c

Diff from to
 xmlXPathObjectPtr
 domXPathCompFindCtxt( xmlXPathContextPtr ctxt, xmlXPathCompExprPtr comp, int to_bool ) {
     xmlXPathObjectPtr res = NULL;
-    if ( comp != NULL && ctxt->node != NULL && comp != NULL ) {
+    if ( ctxt != NULL && ctxt->node != NULL && comp != NULL ) {
         xmlDocPtr tdoc = NULL;
         xmlNodePtr froot = ctxt->node;