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>maint
parent
c1d1128bef
commit
d0ad165366
|
@ -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]$/ ) {
|
||||
|
|
Loading…
Reference in New Issue