mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
Fix uninitialized variable warning if /etc/apparmor/repository.conf does
not exist.
This commit is contained in:
@@ -4143,8 +4143,9 @@ sub do_logprof_pass {
|
||||
eval {
|
||||
unless ($repo_cfg || not defined $cfg->{repository}{url}) {
|
||||
$repo_cfg = read_config("repository.conf");
|
||||
unless ($repo_cfg->{repository}{enabled} eq "yes" ||
|
||||
$repo_cfg->{repository}{enabled} eq "no") {
|
||||
unless ($repo_cfg->{repository}{enabled} &&
|
||||
($repo_cfg->{repository}{enabled} eq "yes" ||
|
||||
$repo_cfg->{repository}{enabled} eq "no")) {
|
||||
UI_ask_to_enable_repo();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user