UBUNTU: SAUCE: timeconst.pl -- fix use of defined on arrays
The recent perl transition has turned the use of defined(@array) into an error. The defined is simply not required. Remove it to quiet the error. BugLink: http://bugs.launchpad.net/bugs/1549677 Signed-off-by: Andy Whitcroft <apw@canonical.com>
This commit is contained in:
@@ -370,7 +370,7 @@ if ($hz eq '--can') {
|
||||
}
|
||||
|
||||
@val = @{$canned_values{$hz}};
|
||||
if (!defined(@val)) {
|
||||
if (!@val) {
|
||||
@val = compute_values($hz);
|
||||
}
|
||||
output($hz, @val);
|
||||
|
||||
Reference in New Issue
Block a user