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:
Andy Whitcroft
2016-02-25 08:51:00 +00:00
parent 1de7507e47
commit e4bf75d352

View File

@@ -370,7 +370,7 @@ if ($hz eq '--can') {
}
@val = @{$canned_values{$hz}};
if (!defined(@val)) {
if (!@val) {
@val = compute_values($hz);
}
output($hz, @val);