Problem reported by Bruno Haible in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00001.html
* lib/error.c (error_tail): Do not call va_end here.
(error, error_at_line): Call it here instead.
+2017-06-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ error: fix POSIX violation for va_end
+ Problem reported by Bruno Haible in:
+ http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00001.html
+ * lib/error.c (error_tail): Do not call va_end here.
+ (error, error_at_line): Call it here instead.
+
2017-05-28 Bruno Haible <bruno@clisp.org>
c-strtod: Make it usable in C++ mode.
else
#endif
vfprintf (stderr, message, args);
- va_end (args);
++error_message_count;
if (errnum)
va_start (args, message);
error_tail (status, errnum, message, args);
+ va_end (args);
#ifdef _LIBC
_IO_funlockfile (stderr);
va_start (args, message);
error_tail (status, errnum, message, args);
+ va_end (args);
#ifdef _LIBC
_IO_funlockfile (stderr);