X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f16b08196c780556cbf50691e2944960aebc46f6..d093cf8cbd50c8fa888640b8487e3f517063aa28:/src/complain.c diff --git a/src/complain.c b/src/complain.c index 2c26c4e4..d187624d 100644 --- a/src/complain.c +++ b/src/complain.c @@ -1,7 +1,7 @@ /* Declaration for error-reporting function for Bison. - Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006 - Free Software Foundation, Inc. + Copyright (C) 2000-2002, 2004-2006, 2009-2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -56,7 +56,6 @@ error_message (location *loc, fprintf (stderr, "%s: ", prefix); vfprintf (stderr, message, args); - va_end (args); putc ('\n', stderr); fflush (stderr); } @@ -67,6 +66,7 @@ error_message (location *loc, va_list args; \ va_start (args, Message); \ error_message (Loc, Prefix, Message, args); \ + va_end (args); \ }