mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
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
Block a user