From 972bc7f95f9b54eabd3fda04aadf607e2123339b Mon Sep 17 00:00:00 2001 From: jklos Date: Wed, 24 Feb 2016 08:54:23 +0000 Subject: Fix issue with VAX when awk's split is called with empty string. --- mk/check/check-portability.awk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mk/check') 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] == "==") { -- cgit v1.2.3