Date: Sat, 29 Sep 2012 16:19:02 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r241049 - head/usr.bin/csup Message-ID: <201209291619.q8TGJ216055027@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209291619.q8TGJ216055027>