Subject: | Compilation error in perl-libxml-mm.c [fix included] |
There's a small c bug that prevents perl-libxml-mm.c from compiling, apparently from an extra if added before a variable declaration. Fix included.
--- perl-libxml-mm.c-orig 2004-06-21 11:03:10.780046000 +0300
+++ perl-libxml-mm.c 2004-06-21 11:05:32.990005000 +0300
@@ -959,13 +959,14 @@
if ( refnode != NULL ) {
xmlDocPtr real_doc = refnode->doc;
if ( real_doc != NULL && real_doc->encoding != NULL ) {
+ xmlChar * decoded;
xs_warn( " encode node !!" );
/* The following statement is to handle bad
values set by XML::LibXSLT */
if ( PmmNodeEncoding(real_doc) == XML_CHAR_ENCODING_NONE ) {
PmmNodeEncoding(real_doc) = XML_CHAR_ENCODING_UTF8;
}
- xmlChar * decoded = PmmFastDecodeString( PmmNodeEncoding(real_doc) ,
+ decoded = PmmFastDecodeString( PmmNodeEncoding(real_doc) ,
(const xmlChar *)string,
(const xmlChar*)real_doc->encoding);
xs_warn( "push decoded string into SV" );