Discussion:
[Xmltv-devel] comparing 'self' eq $newOutput when $newOutput is undef
Karl Dietz
2014-04-01 19:04:53 UTC
Permalink
Hi,

our nightly xmltv-tester at
http://www.crustynet.org.uk/~xmltv-tester/sid/nightly/ started reporting
an error in XML::Writer some time ago. (Most grabber had their last
successful test run on 2013-08-26.)
Use of uninitialized value $newOutput in string eq at
/usr/share/perl5/XML/Writer.pm line 473.

The line (looking it up on the master branch at github) is
if ( !ref($newOutput) && 'self' eq $newOutput ) {
After looking into it and coming up with a hopeful band aid to unbreak
our tester I think the issue was introduced in
https://github.com/josephw/xml-writer-perl/commit/2848dd3853fdb668ef3b2bc2a6ce808f37776479
and can be fixed by testing if $newOutput is defined

Regards,
Karl

Loading...