mirror of https://gitee.com/openkylin/libvirt.git
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