From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id DB4856DE0A89 for ; Sat, 26 Aug 2017 07:42:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f6x66QrsCOkQ for ; Sat, 26 Aug 2017 07:42:07 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 16B746DE0352 for ; Sat, 26 Aug 2017 07:42:03 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1dlcEE-0003AB-HI; Sat, 26 Aug 2017 10:38:26 -0400 Received: (nullmailer pid 11250 invoked by uid 1000); Sat, 26 Aug 2017 14:41:55 -0000 From: David Bremner To: notmuch@notmuchmail.org, notmuch@freelists.org Subject: [PATCH 3/5] cppcheck: call va_end in _internal_error Date: Sat, 26 Aug 2017 11:41:39 -0300 Message-Id: <20170826144141.11140-4-david@tethera.net> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170826144141.11140-1-david@tethera.net> References: <20170826144141.11140-1-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Aug 2017 14:42:08 -0000 fix for: util/error_util.c:38: error: va_list 'va_args' was opened but not closed by va_end() This makes the code more copy-pastable, if nothing else --- util/error_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/error_util.c b/util/error_util.c index 778bbd52..e64162c7 100644 --- a/util/error_util.c +++ b/util/error_util.c @@ -34,6 +34,7 @@ _internal_error (const char *format, ...) fprintf (stderr, "Internal error: "); vfprintf (stderr, format, va_args); + va_end (va_args); exit (1); } -- 2.14.1