mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
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:
parent
b7bcb22ce2
commit
2f5519dcb6
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user