aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-09-18 11:37:02 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-09-18 11:37:02 +0300
commitf2230060d3301f83f1223983a8ee942328c6e0c4 (patch)
tree3354868043859941b7fc5a38cd84a47dcc7f954c /builtin.c
parenta3bfee4ed115a19a968568b9e2abdca2563bfb10 (diff)
downloadegawk-f2230060d3301f83f1223983a8ee942328c6e0c4.tar.gz
egawk-f2230060d3301f83f1223983a8ee942328c6e0c4.tar.bz2
egawk-f2230060d3301f83f1223983a8ee942328c6e0c4.zip
Improve lint check for accessing fields in END rule.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c3
1 files changed, 2 insertions, 1 deletions
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];