]> git.proxmox.com Git - qemu.git/commitdiff
usb-bus: fix no params
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 2 Jun 2010 20:19:56 +0000 (17:19 -0300)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 9 Jun 2010 10:45:03 +0000 (12:45 +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>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
(cherry picked from commit 98f22dc172e1ebd5341da3de0d67666442566f72)

hw/usb-bus.c

index 3bb89862b0c36bdf0b372f04c6ff4ac6479e5cd0..aae1fef7ff4b646fc2c589e1d406e7fefd430892 100644 (file)
@@ -299,7 +299,7 @@ USBDevice *usbdevice_create(const char *cmdline)
     }
 
     if (!usb->usbdevice_init) {
-        if (params) {
+        if (*params) {
             qemu_error("usbdevice %s accepts no params\n", driver);
             return NULL;
         }