• Alexander Nozdrin's avatar
    Backporting revision from mysql-6.0-codebase-bugfixing. · 0f300ac6
    Alexander Nozdrin authored
    Original revision:
    ------------------------------------------------------------
    revno: 3817
    revision-id: guilhem@mysql.com-20100108092756-k0zzf4kvx9b7bh38
    parent: guilhem@mysql.com-20100107101133-hrrgcdqg508runuf
    committer: Guilhem Bichot <guilhem@mysql.com>
    branch nick: mysql-6.0-codebase-bugfixing
    timestamp: Fri 2010-01-08 10:27:56 +0100
    message:
      fix for BUG#50120 "Valgrind errors in any test, inside mysqltest"
      Problem was that as v->name[v->name_len] may be uninitialized (which is ok per se),
      it shouldn't be used in an if(). We remove this zero_the_char/restore_it logic by
      rather zero-terminating the v->name string when we create it in var_init().
    ------------------------------------------------------------
    0f300ac6
mysqltest.cc 250 KB