1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-27 18:03:50 +03:00

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: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Julio Faracco 2019-07-18 00:44:56 -03:00 committed by Michal Privoznik
parent e10b599a24
commit 48df09874b

View File

@ -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));