Avoid a problem in libc_freeres() seen on a linux-i686 buildbot when running
[oota-llvm.git] / utils / parseNLT.pl
index 3a2e82e1e02cae8bc22d78541385c815de7f63e2..95afca73a1322dfda1ce5add735784ce145028fd 100644 (file)
@@ -15,12 +15,14 @@ while(<>)
     if (/<td>([^<]+)<\/td>/)
       {
         if ($prefix)
-          { $output .= "$1 "; }
+          { $output .= "$1 "; $count++; }
       }
     if (/<tr/)
       {
-        if ($output)
-          { print "\n$day $mon $year $prefix/$output"; $output = ""; }
+        if ($output and $count > 3)
+          { print "\n$day $mon $year $prefix/$output"; }
+       $output = "";
+       $count = 0;
       }
     if (/<h2>(Programs.+)<\/h2>/)
       {