提交 596aa144 编写于 作者: J Julio Faracco 提交者: Michal Privoznik

util: Fix uninitalized variable to avoid garbage value.

This commit is similar with 692400f4. It fixes an uninitialized
variable to avoid garbage value. This case, returns 0 jiffies if an
error occurs with virNetDevBridgeGet.
Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
上级 b97801f3
......@@ -713,7 +713,7 @@ int virNetDevBridgeGetSTPDelay(const char *brname,
int *delayms)
{
int ret = -1;
unsigned long val;
unsigned long val = 0;
ret = virNetDevBridgeGet(brname, "forward_delay", &val);
*delayms = JIFFIES_TO_MS(val);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册