ia64/xen-unstable

changeset 15710:0120cca78435

domain builder: Zero start_info struct.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Aug 03 12:23:03 2007 +0100 (2007-08-03)
parents cb3e6fcb7f34
children 6384e168f122
files tools/libxc/xc_dom_x86.c
line diff
     1.1 --- a/tools/libxc/xc_dom_x86.c	Fri Aug 03 12:22:33 2007 +0100
     1.2 +++ b/tools/libxc/xc_dom_x86.c	Fri Aug 03 12:23:03 2007 +0100
     1.3 @@ -417,6 +417,7 @@ static int start_info_x86_32(struct xc_d
     1.4  
     1.5      xc_dom_printf("%s: called\n", __FUNCTION__);
     1.6  
     1.7 +    memset(start_info, 0, sizeof(*start_info));
     1.8      sprintf(start_info->magic, dom->guest_type);
     1.9      start_info->nr_pages = dom->total_pages;
    1.10      start_info->shared_info = shinfo << PAGE_SHIFT_X86;
    1.11 @@ -455,6 +456,7 @@ static int start_info_x86_64(struct xc_d
    1.12  
    1.13      xc_dom_printf("%s: called\n", __FUNCTION__);
    1.14  
    1.15 +    memset(start_info, 0, sizeof(*start_info));
    1.16      sprintf(start_info->magic, dom->guest_type);
    1.17      start_info->nr_pages = dom->total_pages;
    1.18      start_info->shared_info = shinfo << PAGE_SHIFT_X86;