summaryrefslogtreecommitdiffstats
path: root/bin/pax
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pax')
-rw-r--r--bin/pax/tty_subs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pax/tty_subs.c b/bin/pax/tty_subs.c
index a56d56b..d1a5470 100644
--- a/bin/pax/tty_subs.c
+++ b/bin/pax/tty_subs.c
@@ -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);
OpenPOWER on IntegriCloud