Add missing va_end

Reported by:	andrew
This commit is contained in:
Eitan Adler 2018-05-21 09:21:42 +00:00
parent 00157b4c04
commit dfa5eb70ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333971

View File

@ -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? */