aboutsummaryrefslogtreecommitdiffstats
path: root/field.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-09-16 20:53:47 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-09-16 20:53:47 +0300
commit3637723d58b8704f5800787f006b44eef6e1a25d (patch)
tree976fefbfd49f24b21dff2999a7148614b666310a /field.c
parent05a4e7931d2d75fe87a18f15484553b9aa62b545 (diff)
downloadegawk-3637723d58b8704f5800787f006b44eef6e1a25d.tar.gz
egawk-3637723d58b8704f5800787f006b44eef6e1a25d.tar.bz2
egawk-3637723d58b8704f5800787f006b44eef6e1a25d.zip
Fix check of static boolean in field.c:get_field.
Diffstat (limited to 'field.c')
-rw-r--r--field.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/field.c b/field.c
index 3bcfb421..1c209c26 100644
--- a/field.c
+++ b/field.c
@@ -840,7 +840,7 @@ get_field(long requested, Func_ptr *assign)
static bool warned = false;
extern int currule;
- if (do_lint && currule == END) {
+ if (do_lint && currule == END && ! warned) {
warned = true;
lintwarn(_("accessing $0 from an END rule may not be portable"));
}