From: Jiri Denemark Date: Thu, 6 Sep 2018 15:43:17 +0000 (+0200) Subject: qemu: Fix indentation in virDomainDefFormatInternal X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a35a47e9f1766c54ddd6acb52705cba2c303d157;p=libvirt.git qemu: Fix indentation in virDomainDefFormatInternal Broken by v3.10.0-68-gaed3d038a6. Signed-off-by: Jiri Denemark Reviewed-by: John Ferlan --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 4cda131254..7e14cea128 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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;