Subject: | fix defined @array for 5.16 |
Tests fail without this patch on 5.16
--
Reini Urban
Subject: | 0001-fix-defined-array-for-5.16.patch |
From 0a7a53a70bfffcde9b32516ecff059f559d87f47 Mon Sep 17 00:00:00 2001
From: Reini Urban <rurban@cpanel.net>
Date: Thu, 9 Feb 2012 17:15:55 -0600
Subject: [PATCH] fix defined @array for 5.16
---
lib/Log/Log4perl/Config.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/Log/Log4perl/Config.pm b/lib/Log/Log4perl/Config.pm
index 4cd7a9f..159fe02 100644
--- a/lib/Log/Log4perl/Config.pm
+++ b/lib/Log/Log4perl/Config.pm
@@ -872,7 +872,7 @@ sub allowed_code_ops {
}
else {
# give back 'undef' instead of an empty arrayref
- unless( defined @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE ) {
+ unless( @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE ) {
return;
}
}
--
1.7.5.4