Subject: | Duplicate SvGETMAGIC |
Sorry, I introduced a bug in your code. SvPVbyte_nolen handles get magic, so
SvGETMAGIC(xml_sv);
char *xml = SvPVbyte_nolen(xml_sv);
handles get magic twice. This is a bug, but it's unlikely to affect anyone. The fix is simple. Replace the above code (from _xml2hash) wit the following:
char *xml = SvPVbyte_nolen(xml_sv);