summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjklos <jklos@pkgsrc.org>2014-03-01 17:57:01 +0000
committerjklos <jklos@pkgsrc.org>2014-03-01 17:57:01 +0000
commit8497f9e111820d7a925b79c40810ed2e1b9e7145 (patch)
treee390ff21167d44ec84454edcd6cf4bf6c8e9a5e3 /mk
parent57096aa1e778bcf79728673ecb43cf2d0dab99d4 (diff)
downloadpkgsrc-8497f9e111820d7a925b79c40810ed2e1b9e7145.tar.gz
Fixes floating point exceptions on VAX.
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 53d61a3ad57..6d904bc5749 100644
--- a/mk/check/check-portability.awk
+++ b/mk/check/check-portability.awk
@@ -1,4 +1,4 @@
-# $NetBSD: check-portability.awk,v 1.4 2006/11/13 23:21:53 rillig Exp $
+# $NetBSD: check-portability.awk,v 1.5 2014/03/01 17:57:01 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 || length(word) == 0)
+ return;
n = split(line, word);
for (i = 3; i < n; i++) {
if (word[i] == "==") {