mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00: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 a new issue