Ensure all va_starts have a matching va_end.

Obtained from:	NetBSD
This commit is contained in:
Tim J. Robbins 2002-10-06 09:23:58 +00:00
parent 7e61a4ae7b
commit e79f14fad9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104560

View File

@ -99,9 +99,9 @@ void
tty_prnt(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (ttyoutf == NULL)
return;
va_start(ap, fmt);
(void)vfprintf(ttyoutf, fmt, ap);
va_end(ap);
(void)fflush(ttyoutf);