mirror of https://gitee.com/openkylin/libvirt.git
apparmor: Avoid freeing uninitialized pointer
This commit is contained in:
parent
4db3fd7489
commit
d4b7309a9c
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue