OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a8e14
)
Don't assign a static string to NICInfo::model
author
Mark McLoughlin
<markmc@redhat.com>
Tue, 6 Oct 2009 11:16:52 +0000
(12:16 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Tue, 6 Oct 2009 19:36:10 +0000
(14:36 -0500)
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index
3d23140
..
776dd0e
100644
(file)
--- 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) :