aboutsummaryrefslogtreecommitdiff
path: root/git-annotate.perl
diff options
context:
space:
mode:
authorMatthias Kestenholz <matthias@spinlock.ch>2006-04-28 10:42:28 +0200
committerJunio C Hamano <junkio@cox.net>2006-04-28 14:28:28 -0700
commitd0ad1653662a214baddc1d1ce669a28b91a3ae76 (patch)
treeb4aa996fbab013f2166469f391533e61dc345391 /git-annotate.perl
parentc1d1128bef97ae16a6740538abe5fb81c67ed239 (diff)
downloadgit-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-xgit-annotate.perl3
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]$/ ) {