mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-24 23:40:39 +01:00
[v1.04][X86] Fix bug in AMD CPUs (#212)
This commit is contained in:
@@ -194,7 +194,7 @@ void init_topology_struct(struct topology* topo, struct cache* cach) {
|
||||
topo->sockets = 0;
|
||||
#ifdef ARCH_X86
|
||||
topo->smt_available = 0;
|
||||
topo->apic = emalloc(sizeof(struct apic));
|
||||
topo->apic = ecalloc(1, sizeof(struct apic));
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user