LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File aarch64-maybe-uninitialized.patch of Package xen (Project home:charlesa:Factory)

--- xen-4.9.0-testing/tools/libxl/libxl_arm_acpi.c.orig	2017-04-28 09:40:33.038730388 -0600
+++ xen-4.9.0-testing/tools/libxl/libxl_arm_acpi.c	2017-04-28 09:41:20.332937907 -0600
@@ -98,7 +98,7 @@ int libxl__get_acpi_size(libxl__gc *gc,
                          const libxl_domain_build_info *info,
                          uint64_t *out)
 {
-    uint64_t size;
+    uint64_t size = 0;
     int rc = 0;
 
 
@@ -123,7 +123,7 @@ static int libxl__allocate_acpi_tables(l
                                        struct acpitable acpitables[])
 {
     int rc;
-    size_t size;
+    size_t size = 0;
 
     acpitables[RSDP].addr = GUEST_ACPI_BASE;
     acpitables[RSDP].size = sizeof(struct acpi_table_rsdp);