]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: typedparam: Optionally copy strings passed to virTypedParameterAssignValue
authorPeter Krempa <pkrempa@redhat.com>
Wed, 14 Aug 2019 12:52:46 +0000 (14:52 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Sep 2019 11:02:48 +0000 (13:02 +0200)
commit6b39203fac30e2e4e0b943e932676439430cdf21
treef136723ad3629050888d5b8420a73205fbcab5b4
parent803d19a68d4210bfe411460f5cf9286b7a4050eb
util: typedparam: Optionally copy strings passed to virTypedParameterAssignValue

Some code paths already pass in pointers to strings which should be
added directly as the value of the typed parameter. To allow more
universal use of virTypedParameterAssignValue add a flag which allows to
copy the value in place.

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