1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

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:
Tim Wiederhake 2021-07-06 13:32:29 +02:00
parent 7e26e0c98e
commit 50b068d239

View File

@ -687,8 +687,7 @@ virSecuritySELinuxLXCInitialize(virSecurityManager *mgr)
goto error;
}
if (!(data->mcs = virHashNew(NULL)))
goto error;
data->mcs = virHashNew(NULL);
return 0;