vl: Fix exit status for -drive format=help
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20181017082702.5581-35-armbru@redhat.com>
This commit is contained in:
parent
c4f26c9f37
commit
7c89fcbac8
2
vl.c
2
vl.c
@ -4398,7 +4398,7 @@ int main(int argc, char **argv, char **envp)
|
|||||||
if (qemu_opts_foreach(qemu_find_opts("drive"), drive_init_func,
|
if (qemu_opts_foreach(qemu_find_opts("drive"), drive_init_func,
|
||||||
&machine_class->block_default_type, &error_fatal)) {
|
&machine_class->block_default_type, &error_fatal)) {
|
||||||
/* We printed help */
|
/* We printed help */
|
||||||
exit(1);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
default_drive(default_cdrom, snapshot, machine_class->block_default_type, 2,
|
default_drive(default_cdrom, snapshot, machine_class->block_default_type, 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user