From: Matthias Kestenholz Date: Fri, 28 Apr 2006 08:42:28 +0000 (+0200) Subject: annotate: fix warning about uninitialized scalar X-Git-Tag: v1.3.2~12 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;ds=sidebyside;h=d0ad1653662a214baddc1d1ce669a28b91a3ae76;p=git.git 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 --- diff --git a/git-annotate.perl b/git-annotate.perl index 9df72a16..a7aab256 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]$/ ) {