apparmor: Avoid freeing uninitialized pointer

This commit is contained in:
Jiri Denemark 2013-01-24 13:53:22 +01:00
parent 4db3fd7489
commit d4b7309a9c

View File

@ -177,7 +177,7 @@ load_profile(virSecurityManagerPtr mgr,
int rc = -1;
bool create = true;
char *xml = NULL;
virCommandPtr cmd;
virCommandPtr cmd = NULL;
const char *probe = virSecurityManagerGetAllowDiskFormatProbing(mgr)
? "1" : "0";