From f2230060d3301f83f1223983a8ee942328c6e0c4 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 18 Sep 2018 11:37:02 +0300 Subject: Improve lint check for accessing fields in END rule. --- builtin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'builtin.c') diff --git a/builtin.c b/builtin.c index 8247ca33..d7b2337e 100644 --- a/builtin.c +++ b/builtin.c @@ -2364,7 +2364,8 @@ do_print_rec(int nargs, int redirtype) if (fp == NULL) return; - (void) get_field(0L, NULL); /* rebuild record if necessary */ + if (! field0_valid || do_lint) // lint check for field access in END + (void) get_field(0L, NULL); f0 = fields_arr[0]; -- cgit v1.2.3