mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03:00
qemu: Silent bogus warning about unitialized variable
GCC complaints about uninitialized use of len, which however is only used when errors != NULL and in that case len is always initialized. It's trivial to silence this by always initializing len.
This commit is contained in:
parent
d7320e799f
commit
1d7086c2ed
@ -3608,7 +3608,7 @@ static int remoteDispatchDomainGetDiskErrors(
|
||||
int rv = -1;
|
||||
virDomainPtr dom = NULL;
|
||||
virDomainDiskErrorPtr errors = NULL;
|
||||
int len;
|
||||
int len = 0;
|
||||
struct daemonClientPrivate *priv =
|
||||
virNetServerClientGetPrivateData(client);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user