]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Avoid formatting empty redirfilter element
authorLuyao Huang <lhuang@redhat.com>
Fri, 22 May 2015 09:26:29 +0000 (17:26 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 26 May 2015 23:52:26 +0000 (19:52 -0400)
commit733950c21cc4566f4898fe0d331bc2790930e7ce
tree652aad1e4f694a0da0b8e4bdc0708d1cae047ad0
parent3502f791985b6d95327b57a32409b939f3d98e94
conf: Avoid formatting empty redirfilter element

If the redirfilter has no usbdev sub-elements, then do not format anything
rather than formatting an empty pair of elements:

    <redirfilter>
    </redirfilter>

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/conf/domain_conf.c