From patchwork Mon Aug 13 12:33:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 956963 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-95184-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="t8t5XihL"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41pwBy5j4Lz9s0n for ; Mon, 13 Aug 2018 22:34:02 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= JRpyilPPBasMbhVbHiMsUKHUeUfWXW42bJDRzInGTrwg8S0dcCiwHf+uEQ/eEp6+ 1DEt3LatERMVcaxslx4PF5Zssk3zFjLVIO2ditdRbbJb3FaGbx05Ndrl57q6gcpw n7ZiFQwwktmx1gPsImL23JbnczLSvFRdOTvTfOUARCQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=cqvLBq FvFFR5WzoFZ5rhexygBMY=; b=t8t5XihLdOtfjwTN+ghJNZVEbBRaGlbsCm243r TsfD48X/WitKOfaWQYfStQJpAY8CVccVDW9FCNQMN0KbtDX+EWNl08KYqAkTMSBV HH0SWFKpoFS9UyLheKBOh4u7uDXuIpCRxIlKx45ntUJAkOKXaEobxVn+EDe5aRwt JZxWs= Received: (qmail 71240 invoked by alias); 13 Aug 2018 12:33:56 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 70652 invoked by uid 89); 13 Aug 2018 12:33:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:716 X-HELO: mx1.redhat.com Date: Mon, 13 Aug 2018 14:33:49 +0200 To: libc-alpha@sourceware.org Subject: [PATCH] error, error_at_line: Add missing va_end calls User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20180813123349.2E18A403D373C@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) 2018-08-13 Florian Weimer * misc/error.c (error): Add missing va_end call. (error_at_line): Likewise. diff --git a/misc/error.c b/misc/error.c index b4e8b6c938..03378e2f2a 100644 --- a/misc/error.c +++ b/misc/error.c @@ -319,6 +319,7 @@ error (int status, int errnum, const char *message, ...) va_start (args, message); error_tail (status, errnum, message, args); + va_end (args); #ifdef _LIBC _IO_funlockfile (stderr); @@ -390,6 +391,7 @@ error_at_line (int status, int errnum, const char *file_name, va_start (args, message); error_tail (status, errnum, message, args); + va_end (args); #ifdef _LIBC _IO_funlockfile (stderr);