mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
tests: initialize some variables
Found by cppcheck: [tests/metadatatest.c:284]: (error) Uninitialized variable: test [tests/objecteventtest.c:855]: (error) Uninitialized variable: test Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
1 parent
7f8e1cb68f
commit
f8c4868a52
2 files changed
+2
-2
No files matched your search
@@ -268,7 +268,7 @@ testTextMetadata(const void *data)
|
||||
static int
|
||||
mymain(void)
|
||||
{
|
||||
struct metadataTest test;
|
||||
struct metadataTest test = { 0 };
|
||||
int ret = EXIT_SUCCESS;
|
||||
|
||||
if (!(test.conn = virConnectOpen("test:///default")))
|
||||
|
||||
@@ -835,7 +835,7 @@ timeout(int id ATTRIBUTE_UNUSED, void *opaque ATTRIBUTE_UNUSED)
|
||||
static int
|
||||
mymain(void)
|
||||
{
|
||||
objecteventTest test;
|
||||
objecteventTest test = { 0 };
|
||||
int ret = EXIT_SUCCESS;
|
||||
int timer;
|
||||
|
||||
|
||||
Reference in new issue
Block a user