summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-03-08 18:36:31 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-03-08 18:36:31 +0000
commit66bd60d7b50bc080e7fa1efe3fa69df2f9f185fe (patch)
treefd6892e06db6fa9d18b2bbe4853875626a08a810
parent9f36e94ee065873b1b42637a6d332c39c9923451 (diff)
downloaddrakx-66bd60d7b50bc080e7fa1efe3fa69df2f9f185fe.tar
drakx-66bd60d7b50bc080e7fa1efe3fa69df2f9f185fe.tar.gz
drakx-66bd60d7b50bc080e7fa1efe3fa69df2f9f185fe.tar.bz2
drakx-66bd60d7b50bc080e7fa1efe3fa69df2f9f185fe.tar.xz
drakx-66bd60d7b50bc080e7fa1efe3fa69df2f9f185fe.zip
(get_function_value) fix getting value when it's 0 (#14364)
-rw-r--r--perl-install/security/msec.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/security/msec.pm b/perl-install/security/msec.pm
index 35efe8462..4badf5614 100644
--- a/perl-install/security/msec.pm
+++ b/perl-install/security/msec.pm
@@ -60,7 +60,7 @@ sub load_values {
sub get_function_value {
my ($msec, $function) = @_;
- $msec->{functions}{value}{$function} || "default";
+ exists $msec->{functions}{value}{$function} ? $msec->{functions}{value}{$function} : "default";
}
sub get_check_value {