From owner-svn-src-head@FreeBSD.ORG Sat Sep 29 16:19:02 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 535671065672; Sat, 29 Sep 2012 16:19:02 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3EA158FC08; Sat, 29 Sep 2012 16:19:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8TGJ2Sb055029; Sat, 29 Sep 2012 16:19:02 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8TGJ216055027; Sat, 29 Sep 2012 16:19:02 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201209291619.q8TGJ216055027@svn.freebsd.org> From: Kevin Lo Date: Sat, 29 Sep 2012 16:19:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r241049 - head/usr.bin/csup X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2012 16:19:02 -0000 Author: kevlo Date: Sat Sep 29 16:19:01 2012 New Revision: 241049 URL: http://svn.freebsd.org/changeset/base/241049 Log: Add missing va_end. Modified: head/usr.bin/csup/proto.c Modified: head/usr.bin/csup/proto.c ============================================================================== --- head/usr.bin/csup/proto.c Sat Sep 29 16:15:27 2012 (r241048) +++ head/usr.bin/csup/proto.c Sat Sep 29 16:19:01 2012 (r241049) @@ -727,8 +727,10 @@ proto_printf(struct stream *wr, const ch while ((cp = strchr(fmt, '%')) != NULL) { if (cp > fmt) { n = stream_write(wr, fmt, cp - fmt); - if (n == -1) + if (n == -1) { + va_end(ap); return (-1); + } } if (*++cp == '\0') goto done;