]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virxml: Report error if virXMLFormatMetadata() fails
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 25 May 2021 09:30:33 +0000 (11:30 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 May 2021 11:17:22 +0000 (13:17 +0200)
commit2c6402c635d269a37877e6824f216100d8613bd8
tree1f69197bf0908923209177bc97a6ddfcad79ce4e
parentc380ae220e5bd4b47ec6f5e91a5e96f90b92d3d4
virxml: Report error if virXMLFormatMetadata() fails

I guess this is more of an academic problem, because if
<metadata/> content was problematic we would have caught the
error during parsing. Anyway, as is this function returns -1
without any error reported. Fix it by reporting one.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/util/virxml.c