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:
Tim Wiederhake 2021-07-05 16:21:04 +02:00
parent 7db3db301c
commit ac60a87f2b

View File

@ -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) {