diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-08-23 22:13:29 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-08-23 22:13:29 +0200 |
commit | d8c9e8b0daf765af77a2be0cc47aa4d469cc3230 (patch) | |
tree | adf956dc09f452c6edf640568f05d3b7cbb64db1 /Bugzilla | |
parent | ab441548b8d53136c263fdff8dbe58767a64252c (diff) | |
download | bugzilla-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')
-rw-r--r-- | Bugzilla/UserAgent.pm | 2 |
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->()) { |