mirror of https://gitee.com/openkylin/libvirt.git
virSecuritySELinuxLXCInitialize: `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
7e26e0c98e
commit
50b068d239
|
@ -687,8 +687,7 @@ virSecuritySELinuxLXCInitialize(virSecurityManager *mgr)
|
|||
goto error;
|
||||
}
|
||||
|
||||
if (!(data->mcs = virHashNew(NULL)))
|
||||
goto error;
|
||||
data->mcs = virHashNew(NULL);
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue