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:
Tim Wiederhake 2021-07-06 13:33:09 +02:00
parent 50b068d239
commit cc69362e36

View File

@ -758,8 +758,7 @@ virSecuritySELinuxQEMUInitialize(virSecurityManager *mgr)
VIR_DEBUG("Loaded file context '%s', content context '%s'", VIR_DEBUG("Loaded file context '%s', content context '%s'",
data->file_context, data->content_context); data->file_context, data->content_context);
if (!(data->mcs = virHashNew(NULL))) data->mcs = virHashNew(NULL);
goto error;
return 0; return 0;