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

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);