]> git.proxmox.com Git - qemu.git/blobdiff - qemu-img.c
usb-bt: Return NAK instead of STALL when interrupt ep has no data
[qemu.git] / qemu-img.c
index b17bddd25c170a97b8c8ddf14e96a1ddb0c80d30..e29e01b729e76002f9fe0daec5dfdc753cbd40b7 100644 (file)
@@ -2001,14 +2001,13 @@ int main(int argc, char **argv)
 
     error_set_progname(argv[0]);
 
+    qemu_init_main_loop();
     bdrv_init();
     if (argc < 2)
         help();
     cmdname = argv[1];
     argc--; argv++;
 
-    qemu_init_main_loop();
-
     /* find the command */
     for(cmd = img_cmds; cmd->name != NULL; cmd++) {
         if (!strcmp(cmdname, cmd->name)) {