aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2018-10-17 10:26:58 +0200
committerMarkus Armbruster <armbru@redhat.com>2018-10-19 14:51:34 +0200
commit7c89fcbac865bed392bd645de3bf97f88b869318 (patch)
treef898efa7041d51d9cb1e283ea252bcd6a38caa4f /vl.c
parentc4f26c9f37ce511e5fe629c21c180dc6eb7c5a25 (diff)
vl: Fix exit status for -drive format=help
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20181017082702.5581-35-armbru@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 4efa2d08d4..812ceba425 100644
--- a/vl.c
+++ b/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,
&machine_class->block_default_type, &error_fatal)) {
/* We printed help */
- exit(1);
+ exit(0);
}
default_drive(default_cdrom, snapshot, machine_class->block_default_type, 2,