From patchwork Wed Nov 20 12:27:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 101578 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 90ABB3858D33 for ; Wed, 20 Nov 2024 12:27:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90ABB3858D33 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=2TtGwXTb; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0HdcVP+d; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=DDGve0Kn; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=X3NM1YLH X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id 199563858D26 for ; Wed, 20 Nov 2024 12:27:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 199563858D26 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 199563858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732105627; cv=none; b=K0Qaaz8Ya+mGUxu6AZjZC6OkssmSf0GY6KQvBO8DqBRfin5mHgcNlYBN03E5XKN3wOsd3FEpJt2XVQy7Hq/6vLx3avRQV0i9/3IZZSDCRNDqAp3gicztN+qjQzfr/ynamr51Yim/iMrhDPaUiHjOHKq5eLKzeYgerWkyUykowxE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732105627; c=relaxed/simple; bh=QSjCC1D9uLEQfJuP2AUPoMHs48XFwiDPxWbHrK5B1nU=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=dpSxSpwsbfCeTktopXOnQ8CQsR6oxvqV5XVY8pnT0a+OKc3F+Lwnb6YsQsgVCLEl1611iofd7w40PyyLD7c2p2KsGI98xx3gDl9fn+6jmgnwAvg+2f4Yu27bZWW9CDR3gJvDckq4idEFgmzRhw2aYuPPraZsHUuQehr9ibXnSNc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 199563858D26 Received: from hawking.nue2.suse.org (unknown [IPv6:2a07:de40:a101:3:92b1:1cff:fe69:ddc]) by smtp-out1.suse.de (Postfix) with ESMTP id E1B48219A5 for ; Wed, 20 Nov 2024 12:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1732105626; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=+92ZsZHygvq99hikYk7S9OB/4nEPJNU4iyEI1T1Tn1M=; b=2TtGwXTb0pO2QjZTRMyxJV2ANPr+UTTirKsQzMaQGR/tLfy/ALjX/sqUOlQ88UEbBNwHwk 6NX6Lw2fTxiL4R6GsuvMUs1ln3GSh60XUT2tIGk0n7JFRXMxVoZe05ET7HTr9SUEYPM6pD VQDqWvc/WV1dArvJfbdPFPe61SHCLp0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1732105626; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=+92ZsZHygvq99hikYk7S9OB/4nEPJNU4iyEI1T1Tn1M=; b=0HdcVP+dhFvM/QiuLy88ycBUGTkzsiJEssT5EwDhGROFUHbNuSM5BHJkVINZIWugqLLbmA KFwekEKL8zdgFADQ== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=DDGve0Kn; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=X3NM1YLH DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1732105625; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=+92ZsZHygvq99hikYk7S9OB/4nEPJNU4iyEI1T1Tn1M=; b=DDGve0Knmt2RWf6T1ynM0zuS1lB5HG1br8Q+afYICk4U6Yp0iqY2o68v35MhHQV032LulM OqAZunSEbaHhm7RZ9tflY0AhTN/BWzlkKX6/EJkJfjNWzr8wyxMkpKWU2QbprLao1OUut8 Gu2RAWBHuTfzhlHD+Kk/gvDg2FZqUwU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1732105625; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=+92ZsZHygvq99hikYk7S9OB/4nEPJNU4iyEI1T1Tn1M=; b=X3NM1YLHBieDgw4qJ2OEszRm7uBTNswAspfvy4kq/+wO57uxnwUFwd8kUpRiZvAOkkSnSO uaH6DBVJokqV8zDg== Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id 9A8574A0567; Wed, 20 Nov 2024 13:27:05 +0100 (CET) From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] misc: remove extra va_end in error_tail (bug 32233) Date: Wed, 20 Nov 2024 13:27:05 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Spamd-Result: default: False [4.85 / 50.00]; BAYES_HAM(-3.00)[99.99%]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; NEURAL_SPAM_SHORT(2.06)[0.686]; RDNS_NONE(2.00)[]; ONCE_RECEIVED(1.20)[]; HFILTER_HELO_IP_A(1.00)[hawking.nue2.suse.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; HFILTER_HELO_NORES_A_OR_MX(0.30)[hawking.nue2.suse.org]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DIRECT_TO_MX(0.00)[Gnus/5.13 (Gnus v5.13)]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[suse.de:+]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:mid,suse.de:email] X-Spam-Score: 4.85 X-Rspamd-Queue-Id: E1B48219A5 X-Rspamd-Action: no action X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spamd-Bar: ++++ X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org 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. Reviewed-by: Adhemerval Zanella --- misc/error.c | 1 - 1 file changed, 1 deletion(-) 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)