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

Reply via email to