Commits

Anonymous committed 8adb8c6

Log:
PR:

  • Participants
  • Parent commits 92ead4d

Comments (0)

Files changed (2)

         ProxyNodePtr docfrag = NULL;
     CODE:
         STRLEN len;
+        if (!content || (SvCUR(content) <= 0)) {
+            XSRETURN_UNDEF;
+        }
         real_doc = (xmlDocPtr)PmmSvNode(doc);
         docfrag = PmmNewFragment( real_doc );
        
                     xmlFree(string);
                 string=ts;
             }
-            retval = xmlStrdup(string);
         }
-	else {
-            retval = "";
-	}
+        retval = xmlStrdup(string);
         if (string != NULL ) {
             xmlFree(string);
         }