summaryrefslogtreecommitdiff
path: root/lib/syslog.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/syslog.pl')
-rw-r--r--lib/syslog.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/syslog.pl b/lib/syslog.pl
index 8807ef027d..9e03399e4d 100644
--- a/lib/syslog.pl
+++ b/lib/syslog.pl
@@ -143,7 +143,7 @@ sub xlate {
$name = uc $name;
$name = "LOG_$name" unless $name =~ /^LOG_/;
$name = "syslog'$name";
- eval(&$name) || -1;
+ defined &$name ? &$name : -1;
}
sub connect {