mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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…
Reference in New Issue
Block a user