Commits

Anonymous committed 7ae5e5c

Modified Files:
LibXML.xs
+ FIX: Document::URI() does not return a non existing pointer anymore

Comments (0)

Files changed (1)

         xmlDocPtr doc
         char * new_URI
     CODE:
-        RETVAL = doc->URL;
+        RETVAL = xmlStrdup( doc->URL );
         if (new_URI) {
             xmlFree( (char*) doc->URL);
             doc->URL = xmlStrdup(new_URI);