summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-03-25 09:45:30 -0800
committerunknown <jimw@mysql.com>2005-03-25 09:45:30 -0800
commitad869ebda4bb94f947a42e9cb20165200bf148cb (patch)
tree5b5d0e431e5b100b2b04c4634f6fc41b178b3c32 /client
parente4c529d9b5867e04a5f931f6f436e5af90c33704 (diff)
parent5ed4fd6ba93c9e30c17d922da86c8e0df0e92e50 (diff)
downloadmariadb-git-ad869ebda4bb94f947a42e9cb20165200bf148cb.tar.gz
Merge mysql.com:/home/jimw/my/mysql-4.1-8499
into mysql.com:/home/jimw/my/mysql-4.1-clean
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 46bfc7d880f..0c229796c1e 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -3073,9 +3073,14 @@ void tee_fprintf(FILE *file, const char *fmt, ...)
#ifdef OS2
fflush( file);
#endif
+ va_end(args);
+
if (opt_outfile)
+ {
+ va_start(args, fmt);
(void) vfprintf(OUTFILE, fmt, args);
- va_end(args);
+ va_end(args);
+ }
}