Commits

Anonymous committed fbafd7c

fixed double overloading of _prev structured error causing major
slowdown serializing huge amount of messages produced eg. by
recovering HTML parser

Comments (0)

Files changed (1)

lib/XML/LibXML/Error.pm

   my ($self)=@_;
   my $msg = "";
   my $level;
-  if ($self->{_prev}) {
+
+  if (defined($self->{_prev})) {
     $msg = $self->{_prev}->as_string;
   }