Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2018 09:21:42 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333971 - head/usr.bin/top
Message-ID:  <201805210921.w4L9LgV0045612@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Mon May 21 09:21:42 2018
New Revision: 333971
URL: https://svnweb.freebsd.org/changeset/base/333971

Log:
  Add missing va_end
  
  Reported by:	andrew

Modified:
  head/usr.bin/top/display.c

Modified: head/usr.bin/top/display.c
==============================================================================
--- head/usr.bin/top/display.c	Mon May 21 09:20:26 2018	(r333970)
+++ head/usr.bin/top/display.c	Mon May 21 09:21:42 2018	(r333971)
@@ -1020,6 +1020,8 @@ new_message(int type, char *msgfmt, ...)
     /* first, format the message */
     snprintf(next_msg, sizeof(next_msg), msgfmt, args);
 
+    va_end(args);
+
     if (msglen > 0)
     {
 	/* message there already -- can we clear it? */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805210921.w4L9LgV0045612>