Ensure all va_starts have a matching va_end.
Obtained from: NetBSD
This commit is contained in:
parent
7e61a4ae7b
commit
e79f14fad9
@ -99,9 +99,9 @@ void
|
|||||||
tty_prnt(const char *fmt, ...)
|
tty_prnt(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
|
||||||
if (ttyoutf == NULL)
|
if (ttyoutf == NULL)
|
||||||
return;
|
return;
|
||||||
|
va_start(ap, fmt);
|
||||||
(void)vfprintf(ttyoutf, fmt, ap);
|
(void)vfprintf(ttyoutf, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
(void)fflush(ttyoutf);
|
(void)fflush(ttyoutf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user