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; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"