[libvirt PATCH 08/10] testQemuGetLatestCaps: `virHashNew` cannot return NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 tests/testutilsqemu.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c
index be576037e2..72c0b1857b 100644
--- a/tests/testutilsqemu.c
+++ b/tests/testutilsqemu.c
@@ -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) {
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux