| Index: base/sys_info_posix.cc
|
| diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc
|
| index 85ae039118986d211ea3964e38f271c4beb3a026..01bdca2e536d5dd7e474eca88584f965145128c0 100644
|
| --- a/base/sys_info_posix.cc
|
| +++ b/base/sys_info_posix.cc
|
| @@ -113,8 +113,8 @@ std::string SysInfo::OperatingSystemName() {
|
| #if !defined(OS_MACOSX) && !defined(OS_ANDROID)
|
| // static
|
| std::string SysInfo::OperatingSystemVersion() {
|
| - struct utsname info;
|
| - if (uname(&info) < 0) {
|
| + static struct utsname info = {0};
|
| + if (!strlen(info.release) && uname(&info) < 0) {
|
| NOTREACHED();
|
| return std::string();
|
| }
|
|
|