mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
virNetDaemonNew: 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
6555711d41
commit
45ccb05d24
@ -141,8 +141,7 @@ virNetDaemonNew(void)
|
||||
if (!(dmn = virObjectLockableNew(virNetDaemonClass)))
|
||||
return NULL;
|
||||
|
||||
if (!(dmn->servers = virHashNew(virObjectFreeHashData)))
|
||||
goto error;
|
||||
dmn->servers = virHashNew(virObjectFreeHashData);
|
||||
|
||||
#ifndef WIN32
|
||||
dmn->sigwrite = dmn->sigread = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user