git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] annotate: fix warning about uninitialized scalar
@ 2006-04-28  8:42 Matthias Kestenholz
  0 siblings, 0 replies; only message in thread
From: Matthias Kestenholz @ 2006-04-28  8:42 UTC (permalink / raw)
  To: junkio; +Cc: git

Use of uninitialized value in scalar chomp at
./git-annotate.perl line 212, <$kid> chunk 4.

Signed-off-by: Matthias Kestenholz <matthias@spinlock.ch>

---

 git-annotate.perl |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

5322aefa820eef2d635d5dbf621269aefce52135
diff --git a/git-annotate.perl b/git-annotate.perl
index bf920a5..5f8a766 100755
--- a/git-annotate.perl
+++ b/git-annotate.perl
@@ -209,6 +209,9 @@ sub find_parent_renames {
 	while (my $change = <$patch>) {
 		chomp $change;
 		my $filename = <$patch>;
+		if(!$filename) {
+			next;
+		}
 		chomp $filename;
 
 		if ($change =~ m/^[AMD]$/ ) {
-- 
1.3.1.gc4586

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-28  9:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-28  8:42 [PATCH] annotate: fix warning about uninitialized scalar Matthias Kestenholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).