Re: [libvirt] [PATCH 07/22] util: typedparam: Optionally copy strings passed to virTypedParameterAssignValue

2019-09-24 Thread Ján Tomko
On Thu, Sep 19, 2019 at 07:13:10PM +0200, Peter Krempa wrote: Some code paths pass in already pointers to strings which should be already pass in added directly as the value of the typed parameter. To allow more universal use of virTypedParameterAssignValue add a flag which allows to copy

[libvirt] [PATCH 07/22] util: typedparam: Optionally copy strings passed to virTypedParameterAssignValue

2019-09-19 Thread Peter Krempa
Some code paths pass in already 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 --- src/util/virtypedparam.c | 13