[syslinux:master] cpuid: Init flags structures

syslinux-bot for Erwan Velu erwanaliasr1 at gmail.com
Mon Apr 25 15:28:00 PDT 2011


Commit-ID:  5b3160784fba34a69f4dcc3d433afc893fc552e5
Gitweb:     http://syslinux.zytor.com/commit/5b3160784fba34a69f4dcc3d433afc893fc552e5
Author:     Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Mon, 21 Mar 2011 21:22:12 +0100
Committer:  Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Mon, 21 Mar 2011 21:22:12 +0100

cpuid: Init flags structures

Let's zeroify it at init time.


---
 com32/gpllib/cpuid.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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;



More information about the Syslinux-commits mailing list