1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

security: Need to initialize 'sens'

It was possible to call VIR_FREE in cleanup prior to initialization
This commit is contained in:
John Ferlan 2013-01-22 09:15:48 -05:00 committed by Peter Krempa
parent 8363dbaea3
commit 770b4aa8f0

View File

@ -110,7 +110,7 @@ virSecuritySELinuxMCSFind(virSecurityManagerPtr mgr)
char *mcs = NULL;
security_context_t ourSecContext = NULL;
context_t ourContext = NULL;
char *sens, *cat, *tmp;
char *sens = NULL, *cat, *tmp;
int catMin, catMax, catRange;
if (getcon_raw(&ourSecContext) < 0) {