]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Fix indentation in virDomainDefFormatInternal
authorJiri Denemark <jdenemar@redhat.com>
Thu, 6 Sep 2018 15:43:17 +0000 (17:43 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 10 Sep 2018 13:09:46 +0000 (15:09 +0200)
Broken by v3.10.0-68-gaed3d038a6.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/domain_conf.c

index 4cda131254634043bd0db8b252df9c22e6ed7897..7e14cea128bf5c4142635223979c77af91a4a7ba 100644 (file)
@@ -27585,10 +27585,10 @@ virDomainDefFormatInternal(virDomainDefPtr def,
          * but no leading indentation before the starting element.
          * Thankfully, libxml maps what looks like globals into
          * thread-local uses, so we are thread-safe.  */
-            xmlIndentTreeOutput = 1;
-            xmlbuf = xmlBufferCreate();
-            if (xmlNodeDump(xmlbuf, def->metadata->doc, def->metadata,
-                            virBufferGetIndent(buf, false) / 2, 1) < 0) {
+        xmlIndentTreeOutput = 1;
+        xmlbuf = xmlBufferCreate();
+        if (xmlNodeDump(xmlbuf, def->metadata->doc, def->metadata,
+                        virBufferGetIndent(buf, false) / 2, 1) < 0) {
             xmlBufferFree(xmlbuf);
             xmlIndentTreeOutput = oldIndentTreeOutput;
             goto error;