提交 a35a47e9 编写于 作者: J Jiri Denemark

qemu: Fix indentation in virDomainDefFormatInternal

Broken by v3.10.0-68-gaed3d038.
Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 d5a5cbb5
...@@ -27585,10 +27585,10 @@ virDomainDefFormatInternal(virDomainDefPtr def, ...@@ -27585,10 +27585,10 @@ virDomainDefFormatInternal(virDomainDefPtr def,
* but no leading indentation before the starting element. * but no leading indentation before the starting element.
* Thankfully, libxml maps what looks like globals into * Thankfully, libxml maps what looks like globals into
* thread-local uses, so we are thread-safe. */ * thread-local uses, so we are thread-safe. */
xmlIndentTreeOutput = 1; xmlIndentTreeOutput = 1;
xmlbuf = xmlBufferCreate(); xmlbuf = xmlBufferCreate();
if (xmlNodeDump(xmlbuf, def->metadata->doc, def->metadata, if (xmlNodeDump(xmlbuf, def->metadata->doc, def->metadata,
virBufferGetIndent(buf, false) / 2, 1) < 0) { virBufferGetIndent(buf, false) / 2, 1) < 0) {
xmlBufferFree(xmlbuf); xmlBufferFree(xmlbuf);
xmlIndentTreeOutput = oldIndentTreeOutput; xmlIndentTreeOutput = oldIndentTreeOutput;
goto error; goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册