From 1d7086c2ed2910ccc6cabd5eee695dd82c8c4cae Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Wed, 1 Feb 2012 16:10:46 +0100 Subject: [PATCH] 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. --- daemon/remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/remote.c b/daemon/remote.c index 8fbcf43b63..26ac4a647b 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -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); -- 2.47.2