{"thread":{"id":"3984","subject":"[PATCH] annotate: fix warning about uninitialized scalar","startedAt":"2006-04-28T08:42:28Z","lastAt":"2006-04-28T08:42:28Z","messageCount":1,"participants":["Matthias Kestenholz"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"19222","messageId":"20060428084228.GB4313@spinlock.ch","threadId":"3984","inReplyTo":null,"subject":"[PATCH] annotate: fix warning about uninitialized scalar","fromName":"Matthias Kestenholz","fromEmail":"matthias@spinlock.ch","sentAt":"2006-04-28T08:42:28Z","receivedAt":"2006-04-28T08:42:28Z","isPatch":true,"sender":{"key":"matthias@spinlock.ch","avatar":"https://gravatar.com/avatar/bc18f396e70163d09ab458a341b1decb7e8b6ee3aa2c0c954ec20162e67c4d46?d=mp&s=160"},"body":"Use of uninitialized value in scalar chomp at\n./git-annotate.perl line 212, <$kid> chunk 4.\n\nSigned-off-by: Matthias Kestenholz <matthias@spinlock.ch>\n\n---\n\n git-annotate.perl |    3 +++\n 1 files changed, 3 insertions(+), 0 deletions(-)\n\n5322aefa820eef2d635d5dbf621269aefce52135\ndiff --git a/git-annotate.perl b/git-annotate.perl\nindex bf920a5..5f8a766 100755\n--- a/git-annotate.perl\n+++ b/git-annotate.perl\n@@ -209,6 +209,9 @@ sub find_parent_renames {\n \twhile (my $change = <$patch>) {\n \t\tchomp $change;\n \t\tmy $filename = <$patch>;\n+\t\tif(!$filename) {\n+\t\t\tnext;\n+\t\t}\n \t\tchomp $filename;\n \n \t\tif ($change =~ m/^[AMD]$/ ) {\n-- \n1.3.1.gc4586\n"}]}