projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8152fc0
)
usb-bus: fix no params
author
TeLeMan
<geleman@gmail.com>
Tue, 30 Mar 2010 01:33:24 +0000
(09:33 +0800)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 2 Apr 2010 10:12:17 +0000
(12:12 +0200)
After commit
702f3e0fb52c124c07f215426eeadb70a716643f
, the params is
nerver NULL. It should check *params instead of params to determine
whether the params is empty.
Signed-off-by: TeLeMan <geleman@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/usb-bus.c
patch
|
blob
|
history
diff --git
a/hw/usb-bus.c
b/hw/usb-bus.c
index ce8a6946ad944a8c63951be15c5584f8dd3dcb19..ee0e9e30e7f62481f94901e4b457b9c513aa0da3 100644
(file)
--- a/
hw/usb-bus.c
+++ b/
hw/usb-bus.c
@@
-299,7
+299,7
@@
USBDevice *usbdevice_create(const char *cmdline)
}
if (!usb->usbdevice_init) {
- if (params) {
+ if (
*
params) {
error_report("usbdevice %s accepts no params", driver);
return NULL;
}