@matheusbsbs / matheus-bagliano / commits / d0ad165366
Fork 0

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>

Matthias Kestenholz committed Apr 28, 2006 at 10:42 UTC d0ad1653662a214baddc1d1ce669a28b91a3ae76
1 file changed +3
git-annotate.perl
+3
@@ -208,6 +208,9 @@ sub find_parent_renames {
208 while (my $change = <$patch>) {
209 chomp $change;
210 my $filename = <$patch>;
211 + if (!defined $filename) {
212 + next;
213 + }
214 chomp $filename;
215
216 if ($change =~ m/^[AMD]$/ ) {