annotate: fix warning about uninitialized scalar

Use of uninitialized value in scalar chomp at
./git-annotate.perl line 212, <$kid> chunk 4.

Signed-off-by: Matthias Kestenholz <matthias@spinlock.ch>
This commit is contained in:
Matthias Kestenholz 2006-04-28 10:42:28 +02:00 committed by Junio C Hamano
parent c1d1128bef
commit d0ad165366

View file

@ -208,6 +208,9 @@ sub find_parent_renames {
while (my $change = <$patch>) {
chomp $change;
my $filename = <$patch>;
if (!defined $filename) {
next;
}
chomp $filename;
if ($change =~ m/^[AMD]$/ ) {