[libvirt PATCH 1/5] vsh: do not cast away const

Peter Krempa pkrempa at redhat.com
Wed Aug 11 07:45:47 UTC 2021


On Tue, Aug 10, 2021 at 19:14:39 +0200, Ján Tomko wrote:
> Instead of using the same variable to store either a const pointer
> or an allocated string, always make a copy.
> 
> Signed-off-by: Ján Tomko <jtomko at redhat.com>
> ---
>  tools/vsh.c | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)

Reviewed-by: Peter Krempa <pkrempa at redhat.com>




More information about the libvir-list mailing list