]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: xml: Add virXMLBufferCreate wrapper
authorPeter Krempa <pkrempa@redhat.com>
Tue, 23 Feb 2021 16:57:13 +0000 (17:57 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Mar 2021 08:50:19 +0000 (09:50 +0100)
commit2b0f2a0a0742dd27ef91c8fa65bfbbf964e94ea6
tree2d04edd8aed192b27c2ec929453503c820ba60e0
parent7a0b625ea26e100cbe3baf5386b9937d7854094e
util: xml: Add virXMLBufferCreate wrapper

'xmlBufferCreate' returns NULL only on allocation failure. Add a wrapper
which will call 'abort()' in such case in a centralised spot. It doesn't
make much sense to continue execution from here.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/conf/domain_conf.c
src/conf/network_conf.c
src/libvirt_private.syms
src/util/virxml.c
src/util/virxml.h
src/vmx/vmx.c