diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-03 12:23:03 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-03 12:23:03 +0100 |
commit | 5a9b83aea8ae7cf8a1b7ecb9a37d361ae25c02a2 (patch) | |
tree | ddf93ef4c71af348be801ef9d4881b1587279565 /tools/libxc/xc_dom_x86.c | |
parent | ae52354f2b02b9acbc2f226b1fcfd82d5b3c8eae (diff) | |
download | xen-5a9b83aea8ae7cf8a1b7ecb9a37d361ae25c02a2.tar.gz xen-5a9b83aea8ae7cf8a1b7ecb9a37d361ae25c02a2.tar.bz2 xen-5a9b83aea8ae7cf8a1b7ecb9a37d361ae25c02a2.zip |
domain builder: Zero start_info struct.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_dom_x86.c')
-rw-r--r-- | tools/libxc/xc_dom_x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxc/xc_dom_x86.c b/tools/libxc/xc_dom_x86.c index bbb4e1c9bc..1a6aeb1972 100644 --- a/tools/libxc/xc_dom_x86.c +++ b/tools/libxc/xc_dom_x86.c @@ -417,6 +417,7 @@ static int start_info_x86_32(struct xc_dom_image *dom) xc_dom_printf("%s: called\n", __FUNCTION__); + memset(start_info, 0, sizeof(*start_info)); sprintf(start_info->magic, dom->guest_type); start_info->nr_pages = dom->total_pages; start_info->shared_info = shinfo << PAGE_SHIFT_X86; @@ -455,6 +456,7 @@ static int start_info_x86_64(struct xc_dom_image *dom) xc_dom_printf("%s: called\n", __FUNCTION__); + memset(start_info, 0, sizeof(*start_info)); sprintf(start_info->magic, dom->guest_type); start_info->nr_pages = dom->total_pages; start_info->shared_info = shinfo << PAGE_SHIFT_X86; |