Duplicates a string. If str is NULL it returns NULL, so
can make code simple.
Signed-off-by: Trival
---
util/uri.c | 2 +-
vl.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/uri.c b/util/uri.c
index 4238729..e348c17 100644
--- a/util/uri.c
+++ b/util/uri.c
Signed-off-by: Trival
---
block/nbd.c | 2 +-
fsdev/virtfs-proxy-helper.c | 4 ++--
hw/9pfs/virtio-9p-local.c | 2 +-
hw/i386/pc_q35.c| 2 +-
hw/intc/imx_avic.c | 2 +-
hw/usb/host-linux.c | 4 ++--
qga/channel-win32.c | 2 +-
7 files