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

2021-08-11 Thread Peter Krempa
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 > --- > tools/vsh.c | 11 ++- > 1 file changed, 6 insertions(+), 5 deletions(-)

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

2021-08-10 Thread Ján Tomko
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 --- tools/vsh.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/vsh.c b/tools/vsh.c index 123284c636..3bbaecd2ea 100644