提交 2f5519dc 编写于 作者: M Michal Privoznik

hashtest: Initialize variable in virHashEqual test

One of latest patches (b7bcb22c) enhanced testing for virHashEqual.
However, hash2 variable might be used uninitialized.
上级 b7bcb22c
......@@ -583,7 +583,7 @@ testHashEqualCompValue(const void *value1, const void *value2)
static int
testHashEqual(const void *data ATTRIBUTE_UNUSED)
{
virHashTablePtr hash1, hash2;
virHashTablePtr hash1, hash2 = NULL;
int ret = -1;
char keya[] = "a";
char keyb[] = "b";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册