]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecurityLabelDefParseXML: Directly assign strings into appropriate variables
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 Nov 2021 15:33:37 +0000 (16:33 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 24 Nov 2021 08:20:38 +0000 (09:20 +0100)
commitb63c70810cca1357eda0e48bb294ceb3a7f47937
treee0ac06de40c08698383a6642b7696e5cc032fed5
parentf7ff8556ad9ba8d81408e31649071941a6a849a3
virSecurityLabelDefParseXML: Directly assign strings into appropriate variables

'seclabel->label', 'seclabel->imagelabel' and 'seclabel->baselabel' are
populated by stealing the pointer from the 'p' temporary string. Remove
the extra step.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c