]> git.proxmox.com Git - qemu.git/commitdiff
usb-bus: fix no params
authorTeLeMan <geleman@gmail.com>
Tue, 30 Mar 2010 01:33:24 +0000 (09:33 +0800)
committerAurelien 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

index ce8a6946ad944a8c63951be15c5584f8dd3dcb19..ee0e9e30e7f62481f94901e4b457b9c513aa0da3 100644 (file)
@@ -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;
         }