From: Date: March 16 2005 1:37am Subject: bk commit into 4.1 tree (jimw:1.2119) BUG#8499 List-Archive: http://lists.mysql.com/internals/23067 X-Bug: 8499 Message-Id: <20050316003709.7ABEDA8C61@rama.trainedmonkey.com> Below is the list of changes that have just been committed into a local 4.1 repository of jimw. When jimw does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.2119 05/03/15 16:37:05 jimw@stripped +1 -0 Fix 'tee' command in mysql client. (Bug #8499) client/mysql.cc 1.200 05/03/15 16:37:03 jimw@stripped +6 -1 A va_list can't be reused without being copied or reset, so don't try to reuse it in tee_fprintf(). # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: jimw # Host: rama.(none) # Root: /home/jimw/my/mysql-4.1-8499 --- 1.199/client/mysql.cc 2005-03-07 00:47:18 -08:00 +++ 1.200/client/mysql.cc 2005-03-15 16:37:03 -08:00 @@ -3073,9 +3073,14 @@ #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); + } }