Skip to content

Commit

Permalink
annotate: fix warning about uninitialized scalar
Browse files Browse the repository at this point in the history
Use of uninitialized value in scalar chomp at
./git-annotate.perl line 212, <$kid> chunk 4.

Signed-off-by: Matthias Kestenholz <matthias@spinlock.ch>
  • Loading branch information
Matthias Kestenholz authored and Junio C Hamano committed Apr 28, 2006
1 parent c1d1128 commit d0ad165
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-annotate.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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]$/ ) {
Expand Down

0 comments on commit d0ad165

Please sign in to comment.