From: Andreas Schwab Date: Wed, 20 Nov 2024 12:15:44 +0000 (+0100) Subject: misc: remove extra va_end in error_tail (bug 32233) X-Git-Tag: glibc-2.41~470 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e7778ecdef27ebec3f01c3703ed4f51fa578c9c;p=thirdparty%2Fglibc.git misc: remove extra va_end in error_tail (bug 32233) This is an addendum to commit b7b52b9dec ("error, error_at_line: Add missing va_end calls"), which added the va_end calls in the callers where they belong. --- diff --git a/misc/error.c b/misc/error.c index e5d5588434..b229d56c42 100644 --- a/misc/error.c +++ b/misc/error.c @@ -212,7 +212,6 @@ error_tail (int status, int errnum, const char *message, va_list args, #else vfprintf (stderr, message, args); #endif - va_end (args); ++error_message_count; if (errnum)