hashtest: Initialize variable in virHashEqual test

One of latest patches (b7bcb22ce2) enhanced testing for virHashEqual.
However, hash2 variable might be used uninitialized.
This commit is contained in:
Michal Privoznik 2012-01-24 12:09:42 +01:00
parent b7bcb22ce2
commit 2f5519dcb6

View File

@ -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";