summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjklos <jklos>2016-02-24 08:54:23 +0000
committerjklos <jklos>2016-02-24 08:54:23 +0000
commit972bc7f95f9b54eabd3fda04aadf607e2123339b (patch)
tree0b8b942ba33e89ebb06ba1f098a869c1f6f04138 /mk
parentf916165bc55ac0fc74664a2d89b98cdbb1e699f0 (diff)
downloadpkgsrc-972bc7f95f9b54eabd3fda04aadf607e2123339b.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] == "==") {