X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/66381412d93f6a54e4d8e7e90b89149a9bca4945..fcd32abd3a4b68ef525d7766dbed1c98465e23b9:/src/complain.c?ds=sidebyside diff --git a/src/complain.c b/src/complain.c index 7bb22de0..63dfc935 100644 --- a/src/complain.c +++ b/src/complain.c @@ -68,7 +68,6 @@ error_message (location *loc, fprintf (stderr, "%s: ", prefix); vfprintf (stderr, message, args); - va_end (args); putc ('\n', stderr); fflush (stderr); } @@ -79,6 +78,7 @@ error_message (location *loc, va_list args; \ va_start (args, Message); \ error_message (Loc, Prefix, Message, args); \ + va_end (args); \ }