#445 tv_grab_huro: lots of uninitialized variable warnings

0.5.65
closed-fixed
Zsolt Bagoly
5
2014-04-10
2011-07-20
Lucian Muresan
No

Using a command line like:
tv_grab_huro --config-file ./tv_grab_huro.conf --slow --get-full-description --icons --local-icons ./icons --output ./RO_tmp.xml

will give lots of these warnings like:
http://www.port.ro/pls/tv/tv.channel?i_ch=10001&i_date=20110719&i_xday=5&i_where=1: Use of uninitialized value in string ne at /usr/bin/tv_grab_huro line 1067.

Discussion

  • nagy ullmus
    nagy ullmus
    2011-08-05

    most likely the following is returning undef:

    -------------Code---------------

    $anchor->parent->attr('width')

    --------------------------------

    in block of code:

    -------------Code---------------

    return if ($#separators < 1);

    ($anchor) = $separators[1];
    if ($anchor->parent()->tag() ne "td" || $anchor->parent->attr('width') ne "98%") {
    t "credits section not found";
    return;
    }

    --------------------------------

    possible solution:

    if ([ ! $anchor->parent()->tag('td') ] || $anchor->parent->attr('width') ne "98%")

     
  • Geoff
    Geoff
    2014-04-10

    • status: open --> closed-fixed
    • Group: --> 0.5.65
     
  • Geoff
    Geoff
    2014-04-10

    Fixed in version 1.49