2
0
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:
Steve Beattie
2008-11-04 20:37:57 +00:00
parent e56ed9a68a
commit 288aed8886

View File

@@ -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();
}
}