[libvirt PATCH 01/10] testCompareXMLToArgvFiles: `virHashNew` cannot return NULL

Tim Wiederhake twiederh at redhat.com
Mon Jul 12 09:34:08 UTC 2021


Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 tests/nwfilterxml2firewalltest.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/nwfilterxml2firewalltest.c b/tests/nwfilterxml2firewalltest.c
index 6709cc15fd..1cde8e258e 100644
--- a/tests/nwfilterxml2firewalltest.c
+++ b/tests/nwfilterxml2firewalltest.c
@@ -376,9 +376,6 @@ static int testCompareXMLToArgvFiles(const char *xml,
 
     virCommandSetDryRun(dryRunToken, &buf, true, true, NULL, NULL);
 
-    if (!vars)
-        goto cleanup;
-
     if (testSetDefaultParameters(vars) < 0)
         goto cleanup;
 
-- 
2.31.1




More information about the libvir-list mailing list