mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
AppArmorSetSecurityImageLabel: Avoid use of uninitialized variable
The @profile_name variable can be used uninitialized.
This commit is contained in:
parent
edd60d9cf6
commit
32d7e2481b
@ -683,7 +683,7 @@ AppArmorSetSecurityImageLabel(virSecurityManagerPtr mgr,
|
||||
virDomainDefPtr def, virDomainDiskDefPtr disk)
|
||||
{
|
||||
int rc = -1;
|
||||
char *profile_name;
|
||||
char *profile_name = NULL;
|
||||
const virSecurityLabelDefPtr secdef =
|
||||
virDomainDefGetSecurityLabelDef(def, SECURITY_APPARMOR_NAME);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user