From 82024c4ac22e50de3b0ad36d8aa81c52e7b4c9ae Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 1 Jul 2016 06:39:31 +0300 Subject: Minor fixes in gawkapi.c. --- gawkapi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gawkapi.c') diff --git a/gawkapi.c b/gawkapi.c index cca045cf..1ef2f79e 100644 --- a/gawkapi.c +++ b/gawkapi.c @@ -193,7 +193,7 @@ api_fatal(awk_ext_id_t id, const char *format, ...) va_end(args); } -/* api_warning --- print a warning message and exit */ +/* api_warning --- print a warning message */ static void api_warning(awk_ext_id_t id, const char *format, ...) @@ -219,11 +219,10 @@ api_lintwarn(awk_ext_id_t id, const char *format, ...) va_start(args, format); if (lintwarn == r_fatal) { err(true, _("fatal: "), format, args); - va_end(args); } else { err(false, _("warning: "), format, args); - va_end(args); } + va_end(args); } /* api_register_input_parser --- register an input_parser; for opening files read-only */ -- cgit v1.2.3