提交 fc0ab50a 编写于 作者: M Matthias Bolte

Fix two uninitialized variable warnings

gcc only reports them when compiling with -O3.
上级 ebea59ad
......@@ -91,7 +91,7 @@ ifaceGetFlags(const char *ifname, short *flags) {
int
ifaceIsUp(const char *ifname, bool *up) {
short flags;
short flags = 0;
int rc = ifaceGetFlags(ifname, &flags);
if (rc)
......
......@@ -2857,7 +2857,7 @@ static bool
cmdSetvcpus(vshControl *ctl, const vshCmd *cmd)
{
virDomainPtr dom;
int count;
int count = 0;
bool ret = true;
int maximum = vshCommandOptBool(cmd, "maximum");
int config = vshCommandOptBool(cmd, "config");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册