mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 14:29:56 +00: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",
|
"s390x",
|
||||||
"x86_64",
|
"x86_64",
|
||||||
};
|
};
|
||||||
GHashTable *capslatest;
|
GHashTable *capslatest = virHashNew(g_free);
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
if (!(capslatest = virHashNew(g_free)))
|
|
||||||
goto error;
|
|
||||||
|
|
||||||
VIR_TEST_VERBOSE("");
|
VIR_TEST_VERBOSE("");
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS(archs); ++i) {
|
for (i = 0; i < G_N_ELEMENTS(archs); ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user