summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment/PatchReader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Attachment/PatchReader.pm')
-rw-r--r--Bugzilla/Attachment/PatchReader.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Attachment/PatchReader.pm b/Bugzilla/Attachment/PatchReader.pm
index 800de0722..b766a9071 100644
--- a/Bugzilla/Attachment/PatchReader.pm
+++ b/Bugzilla/Attachment/PatchReader.pm
@@ -122,7 +122,8 @@ sub process_interdiff {
# Check for errors
{
local $/ = undef;
- if (defined(my $error = <$interdiff_stderr>)) {
+ my $error = <$interdiff_stderr>;
+ if ($error) {
warn($error);
$warning = 'interdiff3';
}