Commit c122d8fb authored by Byron Jones's avatar Byron Jones

Bug 770104: Fix "use of unitialized value" warning when USER_AGENT is missing

r=LpSolit, a=LpSolit
parent ab98f1d4
......@@ -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->()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment