Ensure all va_starts have a matching va_end.

Obtained from:	NetBSD
This commit is contained in:
tjr 2002-10-06 09:23:58 +00:00
parent a6e37dc919
commit 86028a3db2

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