]> git.ipfire.org Git - thirdparty/libvirt.git/commit
treat all NULL returns from virXMLNodeContentString() as an error
authorLaine Stump <laine@redhat.com>
Tue, 14 Jul 2020 17:43:00 +0000 (13:43 -0400)
committerLaine Stump <laine@redhat.com>
Wed, 5 Aug 2020 04:06:27 +0000 (00:06 -0400)
commitd293a556d710754d8aa8d5caac0bb01a365fcbd8
treebbff285e761d08ef48dc4eb8df4066c5bf980bfb
parentcb373a006867847c8985f647bde7fb9f7b4ff0a2
treat all NULL returns from virXMLNodeContentString() as an error

and stop erroneously equating NULL with "". The latter means that the
element has empty content, while the former means there was an error
during parsing (either internal with the parser, or the content of the
XML was bad).

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c
src/conf/network_conf.c
src/conf/node_device_conf.c