aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-10-12 10:25:59 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-10-12 10:25:59 +0300
commitf7fc3e29590612f4c67e39a2772e8ea2e3412f01 (patch)
tree6b9462e048564ff518c028a9c8552bcc4ab53229
parenta3e187cbb5c9ef951152f18fee1d36c93e4abbe5 (diff)
downloadegawk-f7fc3e29590612f4c67e39a2772e8ea2e3412f01.tar.gz
egawk-f7fc3e29590612f4c67e39a2772e8ea2e3412f01.tar.bz2
egawk-f7fc3e29590612f4c67e39a2772e8ea2e3412f01.zip
Small fix in gawkapi.c.
-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);