diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-10-06 12:16:52 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-06 14:36:10 -0500 |
commit | acc9ebdef875e05673d4f9cea543201cf3af0670 (patch) | |
tree | b83bbe525ed0b1e7bc092107fa75fdca69b75413 /vl.c | |
parent | d2cacec0aaf9adb2d174fd5c50646fb91710fa40 (diff) | |
download | qemu-acc9ebdef875e05673d4f9cea543201cf3af0670.tar.gz qemu-acc9ebdef875e05673d4f9cea543201cf3af0670.tar.bz2 qemu-acc9ebdef875e05673d4f9cea543201cf3af0670.zip |
Don't assign a static string to NICInfo::model
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) : |