提交 1d7086c2 编写于 作者: J Jiri Denemark

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.
上级 d7320e79
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册