Add missing va_end

Reported by:	andrew
This commit is contained in:
eadler 2018-05-21 09:21:42 +00:00
parent aa50e2b923
commit d5ffad074b

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