mirror of https://gitee.com/openkylin/libvirt.git
virSecuritySELinuxQEMUInitialize: `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
50b068d239
commit
cc69362e36
|
@ -758,8 +758,7 @@ virSecuritySELinuxQEMUInitialize(virSecurityManager *mgr)
|
|||
VIR_DEBUG("Loaded file context '%s', content context '%s'",
|
||||
data->file_context, data->content_context);
|
||||
|
||||
if (!(data->mcs = virHashNew(NULL)))
|
||||
goto error;
|
||||
data->mcs = virHashNew(NULL);
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue