提交 cbb3bbc6 编写于 作者: M Michal Privoznik

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

In v5.10.0-508-gfbf3f3d8, 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: NMichal Privoznik <mprivozn@redhat.com>
上级 264ec9da
......@@ -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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册