bhyve_parse_command.c: Don't jump onto non-existent label in CONSUME_ARG()

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>
This commit is contained in:
Michal Privoznik 2020-01-08 11:13:55 +01:00
parent 264ec9da43
commit cbb3bbc66a

View File

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