]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: use g_strdup instead of VIR_STRDUP
authorJán Tomko <jtomko@redhat.com>
Sun, 20 Oct 2019 11:49:46 +0000 (13:49 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 21 Oct 2019 10:51:59 +0000 (12:51 +0200)
commit29b1e859e31960fb3e923636f4e6d97c1b30f429
tree9d952c2e0a17eb102e171fea1a3e0c502e456fa3
parentddb99ca51661e4b6411998506a3c4957e686a1f6
tests: use g_strdup instead of VIR_STRDUP

Replace all occurrences of
  if (VIR_STRDUP(a, b) < 0)
     /* effectively dead code */
with:
  a = g_strdup(b);

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
39 files changed:
tests/bhyvexml2argvmock.c
tests/commandtest.c
tests/cputest.c
tests/domaincapstest.c
tests/nssmock.c
tests/openvzutilstest.c
tests/qemublocktest.c
tests/qemudomaincheckpointxml2xmltest.c
tests/qemufirmwaretest.c
tests/qemuhotplugtest.c
tests/qemumemlocktest.c
tests/qemumonitorjsontest.c
tests/qemumonitortestutils.c
tests/qemusecuritymock.c
tests/qemuvhostusertest.c
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c
tests/scsihosttest.c
tests/securityselinuxlabeltest.c
tests/securityselinuxtest.c
tests/storagebackendsheepdogtest.c
tests/testutils.c
tests/testutilsqemu.c
tests/vboxsnapshotxmltest.c
tests/viralloctest.c
tests/vircgrouptest.c
tests/virfilecachetest.c
tests/virfirewalltest.c
tests/virhostdevtest.c
tests/virnetmessagetest.c
tests/virpcimock.c
tests/virpcitest.c
tests/virscsitest.c
tests/virstoragetest.c
tests/virstringtest.c
tests/virtestmock.c
tests/virusbmock.c
tests/vmx2xmltest.c
tests/xml2vmxtest.c