]> xenbits.xensource.com Git - libvirt.git/commitdiff
hypervisor: Restore pm initialization
authorJohn Ferlan <jferlan@redhat.com>
Mon, 11 Feb 2013 16:03:23 +0000 (11:03 -0500)
committerOsier Yang <jyang@redhat.com>
Mon, 11 Feb 2013 16:32:57 +0000 (00:32 +0800)
Adjustment for 'c059cdeaf' due to older compiler complaint about pm
not being initialized even though the j&7 == 0 does the trick.

src/xen/xen_hypervisor.c

index 767fc0cf65488a97e776ac973e12dafe71d207bd..9b7dd2e7a1a026a0fb28427eab78a7bedbe266c3 100644 (file)
@@ -1773,7 +1773,7 @@ virXen_setvcpumap(int handle,
             ret = -1;
     } else {
         cpumap_t xen_cpumap; /* limited to 64 CPUs in old hypervisors */
-        uint64_t *pm;
+        uint64_t *pm = &xen_cpumap;
         int j;
 
         if ((maplen > (int)sizeof(cpumap_t)) || (sizeof(cpumap_t) & 7))