diff options
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qemu-img.c b/qemu-img.c index b17bddd25c..e29e01b729 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -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)) { |