mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
testQemuGetLatestCaps: virHashNew
cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
7db3db301c
commit
ac60a87f2b
@ -585,12 +585,9 @@ testQemuGetLatestCaps(void)
|
||||
"s390x",
|
||||
"x86_64",
|
||||
};
|
||||
GHashTable *capslatest;
|
||||
GHashTable *capslatest = virHashNew(g_free);
|
||||
size_t i;
|
||||
|
||||
if (!(capslatest = virHashNew(g_free)))
|
||||
goto error;
|
||||
|
||||
VIR_TEST_VERBOSE("");
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS(archs); ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user