From 3cd67992f5ed8f2afcf849ab9bf17ba730a89b92 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 6 Oct 2009 12:16:52 +0100 Subject: [PATCH] Don't assign a static string to NICInfo::model Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 3d2314025c..776dd0e577 100644 --- a/vl.c +++ b/vl.c @@ -2599,7 +2599,7 @@ static int usb_device_add(const char *devname, int is_hotplug) if (net_client_init(NULL, "nic", p) < 0) return -1; - nd_table[nic].model = "usb"; + nd_table[nic].model = qemu_strdup("usb"); dev = usb_net_init(&nd_table[nic]); } else if (!strcmp(devname, "bt") || strstart(devname, "bt:", &p)) { dev = usb_bt_init(devname[2] ? hci_init(p) : -- 2.11.0