Subject: | 11memory.t: uninitialized variable |
The variable $LibXML::TOTALMEM is not initialized on the first invocation. Guard against the spurious warning.
Subject: | perl-XML-LibXML.src2.patch |
--- origsrc/XML-LibXML-2.0121/t/11memory.t 2012-08-09 09:31:14.000000000 +0200
+++ src/XML-LibXML-2.0121/t/11memory.t 2015-05-24 18:24:01.691090400 +0200
@@ -501,7 +501,7 @@ sub check_mem {
}
close ($FH);
- if ($LibXML::TOTALMEM != $mem{Total}) {
+ if ($initialise or $LibXML::TOTALMEM != $mem{Total}) {
warn("LEAK! : ", $mem{Total} - $LibXML::TOTALMEM, " $units\n") unless $initialise;
$LibXML::TOTALMEM = $mem{Total};
}