mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
* src/capabilities.c: Cole Robinson pointed out a well formedness
problem when generating the capabilities in the test driver. Daniel
This commit is contained in:
parent
4090a0870c
commit
65c4379c53
@ -1,3 +1,8 @@
|
||||
Mon Mar 3 21:17:29 CET 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/capabilities.c: Cole Robinson pointed out a well formedness
|
||||
problem when generating the capabilities in the test driver.
|
||||
|
||||
Mon Mar 3 19:09:51 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
Don't use first byte of string as a pointer.
|
||||
|
@ -583,7 +583,7 @@ virCapabilitiesFormatXML(virCapsPtr caps)
|
||||
caps->host.numaCell[i]->ncpus) < 0)
|
||||
goto no_memory;
|
||||
for (j = 0 ; j < caps->host.numaCell[i]->ncpus ; j++)
|
||||
if (virBufferVSprintf(&xml, " <cpu id='%d'>\n",
|
||||
if (virBufferVSprintf(&xml, " <cpu id='%d'/>\n",
|
||||
caps->host.numaCell[i]->cpus[j]) < 0)
|
||||
goto no_memory;
|
||||
if (virBufferAddLit(&xml, " </cpus>\n") < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user