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:
parent
e10b599a24
commit
48df09874b
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user