diff options
author | Byron Jones <bjones@mozilla.com> | 2012-07-04 22:03:43 +0800 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-07-04 22:03:43 +0800 |
commit | c122d8fb40a8bd5269c304783bbb4d73ebf42720 (patch) | |
tree | f88ed3254681225742580d606d43bdc031076290 | |
parent | Bug 339369: During logout, reword "Your login has been forgotten" (diff) | |
download | bugzilla-c122d8fb40a8bd5269c304783bbb4d73ebf42720.tar.gz bugzilla-c122d8fb40a8bd5269c304783bbb4d73ebf42720.tar.bz2 bugzilla-c122d8fb40a8bd5269c304783bbb4d73ebf42720.zip |
Bug 770104: Fix "use of unitialized value" warning when USER_AGENT is missing
r=LpSolit, a=LpSolit
-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 6ad771fab..7071a37b6 100644 --- a/Bugzilla/UserAgent.pm +++ b/Bugzilla/UserAgent.pm @@ -165,7 +165,7 @@ sub detect_platform { } sub detect_op_sys { - my $userAgent = $ENV{'HTTP_USER_AGENT'}; + my $userAgent = $ENV{'HTTP_USER_AGENT'} || ''; my @detected; my $iterator = natatime(2, OS_MAP); while (my($re, $ra) = $iterator->()) { |