summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorjklos <jklos>2016-02-24 08:54:23 +0000
committerjklos <jklos>2016-02-24 08:54:23 +0000
commite7fda35471c34a7d397e2409511b9612e704b760 (patch)
tree0b8b942ba33e89ebb06ba1f098a869c1f6f04138 /mk/check
parent6616208792bfda88e63e0dbc933ba4ede23ba380 (diff)
downloadpkgsrc-e7fda35471c34a7d397e2409511b9612e704b760.tar.gz
Fix issue with VAX when awk's split is called with empty string.
Diffstat (limited to 'mk/check')
-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] == "==") {