summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjklos <jklos@pkgsrc.org>2016-02-24 08:54:23 +0000
committerjklos <jklos@pkgsrc.org>2016-02-24 08:54:23 +0000
commit6276db3fa8cd4c94ec69940e49010476ff4bcd97 (patch)
tree0b8b942ba33e89ebb06ba1f098a869c1f6f04138 /mk
parent9c92967f0fc64cc0f3222946d68dded4502879ea (diff)
downloadpkgsrc-6276db3fa8cd4c94ec69940e49010476ff4bcd97.tar.gz
Fix issue with VAX when awk's split is called with empty string.
Diffstat (limited to 'mk')
-rw-r--r--mk/check/check-portability.awk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/check/check-portability.awk b/mk/check/check-portability.awk
index e5fdbfd23a6..277f0e67388 100644
--- a/mk/check/check-portability.awk
+++ b/mk/check/check-portability.awk
@@ -1,4 +1,4 @@
-# $NetBSD: check-portability.awk,v 1.8 2014/03/11 23:27:40 ryoon Exp $
+# $NetBSD: check-portability.awk,v 1.9 2016/02/24 08:54:23 jklos Exp $
#
# Checks a shell file for possible portability problems.
#
@@ -31,6 +31,8 @@ function check_random(line) {
function check_test_eqeq(line, n, word, i) {
+ if (length(line) == 0)
+ return;
n = split(line, word);
for (i = 3; i < n; i++) {
if (word[i] == "==") {