From: Erwan Velu Date: Mon, 21 Mar 2011 20:22:12 +0000 (+0100) Subject: cpuid: Init flags structures X-Git-Tag: syslinux-4.05-pre1~20^2~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b3160784fba34a69f4dcc3d433afc893fc552e5;p=profile%2Fivi%2Fsyslinux.git cpuid: Init flags structures Let's zeroify it at init time. --- diff --git a/com32/gpllib/cpuid.c b/com32/gpllib/cpuid.c index 2d5b5ce..fb9323b 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;