Commits

Anonymous committed 3c8be65

prevent undefined value warnings

  • Participants
  • Parent commits 4b9238f
  • Branches structerror

Comments (0)

Files changed (1)

File lib/XML/LibXML/Error.pm

   chomp($str);
   $msg.=" ".$str."\n";
   if (($self->{domain} == XML_ERR_FROM_XPATH) and
-      $self->{str1} ne "") {
+      defined($self->{str1})) {
     $msg.=$self->{str1}."\n";
     $msg.=(" " x $self->{int1})."^\n";
   }