Commits

Anonymous committed d9af518

Modified Files:
xpath.c
+ fixes untested segfaults (Bruce Miller)

  • Participants
  • Parent commits c543c37

Comments (0)

Files changed (1)

         if ( tdoc != NULL ) {
             /* after looking through a fragment, we need to drop the
                fake document again */
-            froot->doc = NULL;
+            xmlSetTreeDoc(froot, NULL);
             tdoc->children = NULL;
             tdoc->last     = NULL;
-            xmlSetTreeDoc(froot, NULL);
-            refNode->doc = NULL;
+            /* next line is not required anymore */
+            /* refNode->doc = NULL; */
 
             xmlFreeDoc( tdoc );
         }