test-throttle: Fix uninitialized use of burst_length
commitef0aa6af47da16f5367f545deb599a14ea408bee
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Tue, 30 Jul 2019 16:01:36 +0000 (30 19:01 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Aug 2019 15:26:19 +0000 (20 17:26 +0200)
tree17ae49c4d84415ace1ba6322792143e6985b3e44
parentde428cead63a958137ee63efcc3cceaf75f6c125
test-throttle: Fix uninitialized use of burst_length

ThrottleState::cfg of the static variable 'ts' is reassigned with the
local one in the do_test_accounting() and then is passed to the
throttle_account() with uninitialized member LeakyBucket::burst_length.

Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Message-Id: <1564502498-805893-2-git-send-email-andrey.shinkevich@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/test-throttle.c