mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +00:00
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:
parent
264ec9da43
commit
cbb3bbc66a
@ -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]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user