diff options
author | Marat Dukhan <marat@fb.com> | 2017-10-18 15:50:05 -0700 |
---|---|---|
committer | Marat Dukhan <marat@fb.com> | 2017-10-18 15:50:05 -0700 |
commit | 85a3e21b9af3e8744a0aa7ecaaf7cf4fbee9fcd5 (patch) | |
tree | e0936ece338edaff9b759d1fc150be8db5c41b43 /src | |
parent | 2b4e2c59c17c738e9ed27d8b35f6786eca5777cc (diff) | |
download | cpuinfo-85a3e21b9af3e8744a0aa7ecaaf7cf4fbee9fcd5.tar.gz |
Fix typo in initialization on Mac/x86
Diffstat (limited to 'src')
-rw-r--r-- | src/x86/mach/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86/mach/init.c b/src/x86/mach/init.c index a0be9b2..75404f1 100644 --- a/src/x86/mach/init.c +++ b/src/x86/mach/init.c @@ -210,7 +210,7 @@ void cpuinfo_x86_mach_init(void) { if (l2_count != 0) { l2 = calloc(l2_count, sizeof(struct cpuinfo_cache)); - if (l1d == NULL) { + if (l2 == NULL) { cpuinfo_log_error("failed to allocate %zu bytes for descriptions of %"PRIu32" L2 caches", l2_count * sizeof(struct cpuinfo_cache), l2_count); return; |