mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
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:
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
Block a user