Fix a stack trace when one of these is nil

git-svn-id: file:///home/svn/framework3/trunk@12406 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-04-22 19:27:50 +00:00
parent 5fc0f4eaf1
commit 4c0c282cf8
1 changed files with 1 additions and 1 deletions

View File

@ -775,7 +775,7 @@ protected
else
# family often contains the vendor string, so rip it out to
# avoid useless duplication
ret[:os_name] = data[:vendor] + " " + data[:family].gsub(data[:vendor], '').strip
ret[:os_name] = data[:vendor].to_s + " " + data[:family].to_s.gsub(data[:vendor].to_s, '').strip
end
when "Windows"
ret[:os_name] = "Microsoft Windows"