aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-03-21 21:22:12 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-03-21 21:22:12 +0100
commit5b3160784fba34a69f4dcc3d433afc893fc552e5 (patch)
tree7fd61d8473a90476ddd31214279ac7f1d374eee0 /com32/gpllib
parentadcbc88928e459e9735764057686a9d63a680d60 (diff)
downloadsyslinux-5b3160784fba34a69f4dcc3d433afc893fc552e5.tar.gz
syslinux-5b3160784fba34a69f4dcc3d433afc893fc552e5.tar.xz
syslinux-5b3160784fba34a69f4dcc3d433afc893fc552e5.zip
cpuid: Init flags structures
Let's zeroify it at init time.
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/cpuid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/com32/gpllib/cpuid.c b/com32/gpllib/cpuid.c
index 2d5b5ce9..fb9323b6 100644
--- a/com32/gpllib/cpuid.c
+++ b/com32/gpllib/cpuid.c
@@ -446,6 +446,7 @@ void detect_cpu(s_cpu * cpu)
memset(&c.x86_capability, 0, sizeof(c.x86_capability));
memset(&c.x86_vendor_id, 0, sizeof(c.x86_vendor_id));
memset(&c.x86_model_id, 0, sizeof(c.x86_model_id));
+ memset(&cpu->flags, 0, sizeof(s_cpu_flags));
if (!have_cpuid_p())
return;