summaryrefslogtreecommitdiffstats
path: root/Bugzilla/UserAgent.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-08-23 22:13:29 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-08-23 22:13:29 +0200
commitd8c9e8b0daf765af77a2be0cc47aa4d469cc3230 (patch)
treeadf956dc09f452c6edf640568f05d3b7cbb64db1 /Bugzilla/UserAgent.pm
parentab441548b8d53136c263fdff8dbe58767a64252c (diff)
downloadbugzilla-d8c9e8b0daf765af77a2be0cc47aa4d469cc3230.tar.gz
bugzilla-d8c9e8b0daf765af77a2be0cc47aa4d469cc3230.tar.xz
Fix Use of uninitialized value in pattern match (m//) at /data/www/bugzilla.mozilla.org/Bugzilla/UserAgent.pm line 179 error from Arecibo
Diffstat (limited to 'Bugzilla/UserAgent.pm')
-rw-r--r--Bugzilla/UserAgent.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/UserAgent.pm b/Bugzilla/UserAgent.pm
index 6589930ce..07b05b99c 100644
--- a/Bugzilla/UserAgent.pm
+++ b/Bugzilla/UserAgent.pm
@@ -172,7 +172,7 @@ use constant OS_MAP => (
);
sub detect_platform {
- my $userAgent = $ENV{'HTTP_USER_AGENT'};
+ my $userAgent = $ENV{'HTTP_USER_AGENT'} || '';
my @detected;
my $iterator = natatime(2, PLATFORMS_MAP);
while (my($re, $ra) = $iterator->()) {