From d0ad1653662a214baddc1d1ce669a28b91a3ae76 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Fri, 28 Apr 2006 10:42:28 +0200 Subject: [PATCH] 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 --- git-annotate.perl | 3 +++ 1 file changed, 3 insertions(+) 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]$/ ) { -- 2.30.2