]> xenbits.xensource.com Git - libvirt.git/commit
Use g_strdup to fill in default values
authorJán Tomko <jtomko@redhat.com>
Fri, 18 Oct 2019 13:08:21 +0000 (15:08 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 21 Oct 2019 10:51:55 +0000 (12:51 +0200)
commit7b48bb8ca0ab799449017e8548e9efef6f28c306
treea7e91bb0a604277570c174e1c96f237339b78fa4
parent3cbd4351de16bfc7da1a309455699007b2d41055
Use g_strdup to fill in default values

Replace:
  if (!s && VIR_STRDUP(s, str) < 0)
    goto;
with:
  if (!s)
    s = g_strdup(str);

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
21 files changed:
src/conf/domain_conf.c
src/conf/storage_conf.c
src/esx/esx_util.c
src/esx/esx_vi_types.c
src/hyperv/hyperv_util.c
src/node_device/node_device_udev.c
src/qemu/qemu_capabilities.c
src/qemu/qemu_domain.c
src/qemu/qemu_hotplug.c
src/remote/remote_driver.c
src/security/security_apparmor.c
src/security/security_selinux.c
src/storage/storage_backend_logical.c
src/storage/storage_backend_zfs.c
src/test/test_driver.c
src/util/virfile.c
src/util/virlease.c
src/util/virpci.c
src/util/virtypedparam.c
src/vmx/vmx.c
tests/domaincapstest.c