mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
test: ensure nerrors variable is initialized
There is an error path that jumps over the initialization of nerrors, and the jump target reads the variable contents. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
613c8eeaa2
commit
80b71b2c85
@ -3275,7 +3275,7 @@ static int testDomainGetDiskErrors(virDomainPtr dom,
|
|||||||
virDomainObjPtr vm = NULL;
|
virDomainObjPtr vm = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
size_t i;
|
size_t i;
|
||||||
size_t nerrors;
|
size_t nerrors = 0;
|
||||||
|
|
||||||
virCheckFlags(0, -1);
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user