ia64/xen-unstable

changeset 15677:7c5c3aa858cc

hvmloader: Avoid bogus use of NULL pointer.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Jul 31 15:09:45 2007 +0100 (2007-07-31)
parents 66055f773d19
children 0636f262ecd8
files tools/firmware/hvmloader/smbios.c
line diff
     1.1 --- a/tools/firmware/hvmloader/smbios.c	Tue Jul 31 11:37:27 2007 +0100
     1.2 +++ b/tools/firmware/hvmloader/smbios.c	Tue Jul 31 15:09:45 2007 +0100
     1.3 @@ -169,7 +169,7 @@ hvm_write_smbios_tables(void)
     1.4      /* temporary variables used to build up Xen version string */
     1.5      char *p = NULL; /* points to next point of insertion */
     1.6      unsigned len = 0; /* length of string already composed */
     1.7 -    char *tmp = NULL; /* holds result of itoa() */
     1.8 +    char tmp[16]; /* holds result of itoa() */
     1.9      unsigned tmp_len; /* length of next string to add */
    1.10  
    1.11      hypercall_xen_version(XENVER_guest_handle, uuid);