diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2007-11-27 12:45:08 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2007-11-27 12:45:08 +0000 |
commit | 25bcada5ccc4ccd199ae3b30fd302d9ab485822d (patch) | |
tree | 2d11fd5abc331624311ce8da244003d790300ef3 /xen/arch/x86/x86_emulate.c | |
parent | 9693f556338dccdab46f276e113d667ac48a9a15 (diff) | |
download | xen-25bcada5ccc4ccd199ae3b30fd302d9ab485822d.tar.gz xen-25bcada5ccc4ccd199ae3b30fd302d9ab485822d.tar.bz2 xen-25bcada5ccc4ccd199ae3b30fd302d9ab485822d.zip |
x86_emulate: Fix use-before-initialise warning.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/x86_emulate.c')
-rw-r--r-- | xen/arch/x86/x86_emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/x86_emulate.c b/xen/arch/x86/x86_emulate.c index 763d73774f..76cbd67ae8 100644 --- a/xen/arch/x86/x86_emulate.c +++ b/xen/arch/x86/x86_emulate.c @@ -2706,8 +2706,8 @@ x86_emulate( goto done; break; case 4: /* smsw */ + ea.bytes = 2; dst = ea; - dst.bytes = 2; fail_if(ops->read_cr == NULL); if ( (rc = ops->read_cr(0, &dst.val, ctxt)) ) goto done; |