Commit 5e0d06da authored by jimw@mysql.com's avatar jimw@mysql.com

Fix 'tee' command in mysql client. (Bug #8499)

parent cedaeb4b
...@@ -3073,9 +3073,14 @@ void tee_fprintf(FILE *file, const char *fmt, ...) ...@@ -3073,9 +3073,14 @@ void tee_fprintf(FILE *file, const char *fmt, ...)
#ifdef OS2 #ifdef OS2
fflush( file); fflush( file);
#endif #endif
va_end(args);
if (opt_outfile) if (opt_outfile)
{
va_start(args, fmt);
(void) vfprintf(OUTFILE, fmt, args); (void) vfprintf(OUTFILE, fmt, args);
va_end(args); va_end(args);
}
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment