svn commit: r241049 - head/usr.bin/csup

Kevin Lo kevlo at FreeBSD.org
Sat Sep 29 16:19:02 UTC 2012


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;


More information about the svn-src-all mailing list