提交 f2fed23c 编写于 作者: S shshahma

8177958: Possible uninitialized char* in vm_version_solaris_sparc.cpp

Reviewed-by: kvn, shade
上级 99a1ba63
......@@ -442,7 +442,7 @@ int VM_Version::platform_features(int features) {
// is available to us as well
Sysinfo cpu_info(SI_CPUBRAND);
bool use_solaris_12_api = cpu_info.valid();
const char* impl;
const char* impl = "unknown";
int impl_m = 0;
if (use_solaris_12_api) {
impl = cpu_info.value();
......@@ -477,7 +477,7 @@ int VM_Version::platform_features(int features) {
kstat_close(kc);
}
}
assert(impl_m != 0, err_msg("Unknown CPU implementation %s", impl));
assert(impl_m != 0, err_msg("Unrecognized CPU implementation %s", impl));
features |= impl_m;
bool is_sun4v = (features & sun4v_m) != 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册