X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-archimport.perl;h=00808500165068247826895c063aebce8e9901f7;hb=6e33101abd82f38393b8f2a137601add845722f7;hp=1cf126181ba008ab11d9fb23afccb8623cb00b48;hpb=3e525e673849393035a2639e17ff74e616a618b9;p=git.git diff --git a/git-archimport.perl b/git-archimport.perl index 1cf12618..00808500 100755 --- a/git-archimport.perl +++ b/git-archimport.perl @@ -790,7 +790,7 @@ sub parselog { # skip Arch control files, unescape pika-escaped files foreach my $k (keys %want_headers) { next unless (defined $ps->{$k}); - my @tmp; + my @tmp = (); foreach my $t (@{$ps->{$k}}) { next unless length ($t); next if $t =~ m!\{arch\}/!; @@ -804,7 +804,7 @@ sub parselog { } push @tmp, $t; } - $ps->{$k} = \@tmp if scalar @tmp; + $ps->{$k} = \@tmp; } }