mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00: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:
parent
c7560d0141
commit
45c3845150
@ -964,8 +964,7 @@ virSystemdActivationNew(virSystemdActivationMap *map,
|
|||||||
VIR_DEBUG("Activated with %d FDs", nfds);
|
VIR_DEBUG("Activated with %d FDs", nfds);
|
||||||
act = g_new0(virSystemdActivation, 1);
|
act = g_new0(virSystemdActivation, 1);
|
||||||
|
|
||||||
if (!(act->fds = virHashNew(virSystemdActivationEntryFree)))
|
act->fds = virHashNew(virSystemdActivationEntryFree);
|
||||||
goto error;
|
|
||||||
|
|
||||||
fdnames = getenv("LISTEN_FDNAMES");
|
fdnames = getenv("LISTEN_FDNAMES");
|
||||||
if (fdnames) {
|
if (fdnames) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user