]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Use g_strdup where VIR_STRDUP's return value was propagated
authorJán Tomko <jtomko@redhat.com>
Sun, 20 Oct 2019 10:55:05 +0000 (12:55 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 21 Oct 2019 10:51:55 +0000 (12:51 +0200)
commit3cbd4351de16bfc7da1a309455699007b2d41055
tree98f6f1e0d100be9d0068d52e0f915a2a4d1bb84e
parent94c98eb5509de291892bd5b410bccb9b5dce8955
Use g_strdup where VIR_STRDUP's return value was propagated

All the callers of these functions only check for a negative
return value.

However, virNetDevOpenvswitchGetVhostuserIfname is documented
as returning 1 for openvswitch interfaces so preserve that.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
13 files changed:
src/esx/esx_vi.c
src/esx/esx_vi_types.c
src/qemu/qemu_alias.c
src/qemu/qemu_monitor_json.c
src/storage/storage_util.c
src/util/vircgroupv2.c
src/util/viriscsi.c
src/util/virnuma.c
src/util/virresctrl.c
src/util/virstoragefile.c
src/util/viruri.c
tests/qemuxml2argvmock.c
tests/securityselinuxhelper.c