}
# Pipe used for progress bar in multiprocess
-my $pipe;
+my $pipe = undef;
# Seeking to an old log position is not possible outside incremental mode
if (!$last_parsed) {
elsif ($fmt eq 'binary')
{
&load_stats($lfile);
- $pipe->print("$totalsize 0 0\n");
+ $pipe->print("$totalsize 0 0\n") if (defined $pipe);
}
# Format is not CSV and in incremental mode we are not at end of the file
else
$cursize = $totalsize;
}
- if (!$tmpoutfile|| not defined $pipe)
+ if (!$tmpoutfile || not defined $pipe)
{
if ($totalsize)
{