From: John Ferlan Date: Tue, 22 Jan 2013 14:15:48 +0000 (-0500) Subject: security: Need to initialize 'sens' X-Git-Tag: v1.0.2-rc1~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=770b4aa8f0e59f50dd839e8c1c83986ca0ebef97;p=thirdparty%2Flibvirt.git security: Need to initialize 'sens' It was possible to call VIR_FREE in cleanup prior to initialization --- diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index 511e92342c..a3ef728cd9 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -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) {