]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
bhyve_parse_command.c: Don't jump onto non-existent label in CONSUME_ARG()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jan 2020 10:13:55 +0000 (11:13 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jan 2020 11:54:33 +0000 (12:54 +0100)
In v5.10.0-508-gfbf3f3d86a, the 'error' label was removed from
bhyveParseBhyveCommandLine(), however the CONSUME_ARG() macro
still uses it. Fix the macro to return an error instead.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/bhyve/bhyve_parse_command.c

index f7cedf5c658d8df87627d7dab9410ed6e7785332..30927ff10c05b30cc55173bb38fac248fd763558 100644 (file)
@@ -628,7 +628,7 @@ bhyveParseBhyvePCIArg(virDomainDefPtr def,
     if ((opti + 1) == argc) { \
         virReportError(VIR_ERR_INVALID_ARG, _("Missing argument for '%s'"), \
                        argv[opti]); \
-        goto error; \
+        return -1; \
     } \
     var = argv[++opti]