]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virSystemdActivationNew: `virHashNew` cannot return NULL
authorTim Wiederhake <twiederh@redhat.com>
Tue, 6 Jul 2021 11:36:19 +0000 (13:36 +0200)
committerTim Wiederhake <twiederh@redhat.com>
Fri, 23 Jul 2021 09:29:57 +0000 (11:29 +0200)
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virsystemd.c

index 96f81cd3fa3cd2ab0c4646fb96943a9b004bfd91..6417dc6ea7d56fcad35e5f069f94b08cbe49b616 100644 (file)
@@ -964,8 +964,7 @@ virSystemdActivationNew(virSystemdActivationMap *map,
     VIR_DEBUG("Activated with %d FDs", nfds);
     act = g_new0(virSystemdActivation, 1);
 
-    if (!(act->fds = virHashNew(virSystemdActivationEntryFree)))
-        goto error;
+    act->fds = virHashNew(virSystemdActivationEntryFree);
 
     fdnames = getenv("LISTEN_FDNAMES");
     if (fdnames) {