mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virSystemdActivationNew: virHashNew cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user