提交 48df0987 编写于 作者: J Julio Faracco 提交者: Michal Privoznik

util: Fix uninitalized variable to avoid garbage value.

This commit is similar with 596aa144. It fixes an uninitialized
variable to avoid garbage value. This case, it uses time 't' 0 if
an error occurs with virTimeMillisNowRaw.
Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 e10b599a
......@@ -422,7 +422,7 @@ virTimeBackOffStart(virTimeBackOffVar *var,
bool
virTimeBackOffWait(virTimeBackOffVar *var)
{
unsigned long long t, next;
unsigned long long next, t = 0;
ignore_value(virTimeMillisNowRaw(&t));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册