Skip to content

Instantly share code, notes, and snippets.

@apreiml
Created January 10, 2020 14:40
Show Gist options
  • Save apreiml/0745d7d5cfd47f6e485bf08536d6bd74 to your computer and use it in GitHub Desktop.
Save apreiml/0745d7d5cfd47f6e485bf08536d6bd74 to your computer and use it in GitHub Desktop.
diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl
index eb51d76e..0215e3d3 100644
--- a/kernel/timeconst.pl
+++ b/kernel/timeconst.pl
@@ -370,7 +370,7 @@ if ($hz eq '--can') {
}
@val = @{$canned_values{$hz}};
- if (!defined(@val)) {
+ if (!scalar(@val)) {
@val = compute_values($hz);
}
output($hz, @val);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment