]> xenbits.xensource.com Git - libvirt.git/commit
src: Use VIR_STRDUP() wherever possible
authorAndrea Bolognani <abologna@redhat.com>
Fri, 20 Jul 2018 07:45:12 +0000 (09:45 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 23 Jul 2018 12:27:23 +0000 (14:27 +0200)
commit5d481d0d02f34a7ea822265a396973012218ad33
tree2e4054aa7e9bfb409fdc85654c16bd66c6b617b1
parentbfb8ab1b2caf4a538aba8ccc40f5e4f7970c90bf
src: Use VIR_STRDUP() wherever possible

virStrcpy() and friends are useful when the destination
buffer has already been allocated, eg. as part of a struct;
if we have to allocate it on the spot, VIR_STRDUP() is a
better choice.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/remote/remote_daemon_dispatch.c