diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-10-12 10:25:59 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-10-12 10:25:59 +0300 |
commit | f7fc3e29590612f4c67e39a2772e8ea2e3412f01 (patch) | |
tree | 6b9462e048564ff518c028a9c8552bcc4ab53229 | |
parent | a3e187cbb5c9ef951152f18fee1d36c93e4abbe5 (diff) | |
download | egawk-f7fc3e29590612f4c67e39a2772e8ea2e3412f01.tar.gz egawk-f7fc3e29590612f4c67e39a2772e8ea2e3412f01.tar.bz2 egawk-f7fc3e29590612f4c67e39a2772e8ea2e3412f01.zip |
Small fix in gawkapi.c.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gawkapi.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 @@ -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); |