aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--gawkapi.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f5bc0822..45025d4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-10-12 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkapi.c (api_lintwarn): Fix comparison, should be to check
+ lintfunc, not lintwarn. Thanks to OLLIER Jean-François
+ <lalanne.51@wanadoo.fr>, reported 23 March, 2014.
+
2020-10-11 Arnold D. Robbins <arnold@skeeve.com>
* re.c (make_regexp): Add {} to characters that cause rp->maybe_long
diff --git a/gawkapi.c b/gawkapi.c
index 3ae837f1..c85427bb 100644
--- a/gawkapi.c
+++ b/gawkapi.c
@@ -275,7 +275,7 @@ api_lintwarn(awk_ext_id_t id, const char *format, ...)
(void) id;
va_start(args, format);
- if (lintwarn == r_fatal) {
+ if (lintfunc == r_fatal) {
err(true, _("fatal: "), format, args);
} else {
err(false, _("warning: "), format, args);