]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: only format <controller> as a pair tag when needed
authorJán Tomko <jtomko@redhat.com>
Fri, 26 May 2017 16:10:11 +0000 (18:10 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 5 Jun 2017 14:13:50 +0000 (16:13 +0200)
commitbb74c66e67485e12c239c13ea1be38ec6e0081ad
tree6de359cf32619bbf65ee9fe91f71eb8794954d75
parent5b96f37ff46d9e6cbad230bdf426bbdac4f28942
conf: only format <controller> as a pair tag when needed

Make the decision based on the usage of childBuf buffer.

This fixes the oddity in the test case introduced by commit c1c4d0d
where we would format an empty pair tag.
src/conf/domain_conf.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-s390-defaultconsole.xml