diff --git a/src/util/sysinfo.c b/src/util/sysinfo.c index 220338f..e6d687e 100644 --- a/src/util/sysinfo.c +++ b/src/util/sysinfo.c @@ -620,7 +620,7 @@ virSysinfoParseCPUInfoProcessor(const char *base, virSysinfoDefPtr ret) if(!physical_id) { physical_id = tmp_physical_id; } - else if (!strncmp(physical_id, tmp_physical_id, physical_id_len)) { + else if (STREQLEN(physical_id, tmp_physical_id, physical_id_len)) { base = cur; continue; }