提交 5288b2ad 编写于 作者: M Matthias Bolte

nwfilter: Fix random index in virNWFilterRuleDefDetailsFormat

An uninitialized int value was used to index an array. This can
result in a segfault in nwfilterxml2xmltest.
上级 1b747f0d
......@@ -2375,7 +2375,7 @@ virNWFilterRuleDefDetailsFormat(virConnectPtr conn,
const virXMLAttr2Struct *att,
virNWFilterRuleDefPtr def)
{
int i, j;
int i = 0, j;
bool typeShown = 0;
bool neverShown = 1;
enum match {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册