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: Julio Faracco <jcfaracco(a)gmail.com>
---
src/util/virtime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/virtime.c b/src/util/virtime.c
index d1187726ee..86993e4e8d 100644
--- a/src/util/virtime.c
+++ b/src/util/virtime.c
@@ -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));
--
2.20.1