Mac client/hostinfo_unix: fix for CPU features detection

- feature_string is only set to something useful in ARM64 case
This commit is contained in:
Bernd Machenschalk 2021-06-01 00:01:27 +02:00
parent 2975069c37
commit 6193080dff
1 changed files with 2 additions and 1 deletions

View File

@ -910,10 +910,11 @@ static void get_cpu_info_mac(HOST_INFO& host) {
} else if (log_flags.coproc_debug) {
msg_printf(0, MSG_INFO, "[x86_64-M1] didn't find file %s", fpath);
}
#endif // defined(__i386__) || defined(__x86_64__)
strncpy(features,feature_string.c_str(),sizeof(features));
#endif // defined(__i386__) || defined(__x86_64__)
// Convert Mac CPU features string to match that returned by Linux
for(p=features; *p; p++) {
*p = tolower(*p);