From 4f608d4d3489935d55c20e15cc2ec7d700887ed4 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 8 May 2012 14:10:16 +0800 Subject: Bug 744015: Fix 'use of uninitialized value in string' in PatchReader r=gerv, a=LpSolit --- Bugzilla/Attachment/PatchReader.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Attachment/PatchReader.pm b/Bugzilla/Attachment/PatchReader.pm index 3be0555c1..c79b96ed2 100644 --- a/Bugzilla/Attachment/PatchReader.pm +++ b/Bugzilla/Attachment/PatchReader.pm @@ -200,7 +200,9 @@ sub warn_if_interdiff_might_fail { # Verify that the revisions in the files are the same. foreach my $file (keys %{$old_file_list}) { - if ($old_file_list->{$file}{old_revision} ne + if (exists $old_file_list->{$file}{old_revision} + && exists $new_file_list->{$file}{old_revision} + && $old_file_list->{$file}{old_revision} ne $new_file_list->{$file}{old_revision}) { return 'interdiff2'; -- cgit v1.2.3-24-g4f1b