]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* src/capabilities.c: Cole Robinson pointed out a well formedness
authorDaniel Veillard <veillard@redhat.com>
Mon, 3 Mar 2008 20:21:21 +0000 (20:21 +0000)
committerDaniel Veillard <veillard@redhat.com>
Mon, 3 Mar 2008 20:21:21 +0000 (20:21 +0000)
  problem when generating the capabilities in the test driver.
Daniel

ChangeLog
src/capabilities.c

index 50e48f6aff395685dc8d746d2c25aabf50e4dc96..9c1a1e2d5df78d8b43556a9d3acbb72d8b74192e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index bedd445923363ba5ba5dc06198776076fcd1a89a..01bb30803d8a6e82d6a6575e3ab353955a258668 100644 (file)
@@ -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)