diff options
author | Matthias Kestenholz <matthias@spinlock.ch> | 2006-04-28 10:42:28 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-28 14:28:28 -0700 |
commit | d0ad1653662a214baddc1d1ce669a28b91a3ae76 (patch) | |
tree | b4aa996fbab013f2166469f391533e61dc345391 /git-annotate.perl | |
parent | c1d1128bef97ae16a6740538abe5fb81c67ed239 (diff) | |
download | git-d0ad1653662a214baddc1d1ce669a28b91a3ae76.tar.gz git-d0ad1653662a214baddc1d1ce669a28b91a3ae76.tar.xz |
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>
Diffstat (limited to 'git-annotate.perl')
-rwxr-xr-x | git-annotate.perl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-annotate.perl b/git-annotate.perl index 9df72a166..a7aab2566 100755 --- a/git-annotate.perl +++ b/git-annotate.perl @@ -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]$/ ) { |