[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 3cd6799] Don't assign a static string to NICInfo:
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 3cd6799] Don't assign a static string to NICInfo::model |
Date: |
Tue, 06 Oct 2009 20:05:32 -0000 |
From: Mark McLoughlin <address@hidden>
Signed-off-by: Mark McLoughlin <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/vl.c b/vl.c
index 3d23140..776dd0e 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) :
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 3cd6799] Don't assign a static string to NICInfo::model,
Anthony Liguori <=