diff options
author | unknown <serg@serg.mylan> | 2005-01-16 16:38:38 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-01-16 16:38:38 +0100 |
commit | e4f887ad20db0fb16d6851acb05c0410c11f63e3 (patch) | |
tree | e0981250e871d65472672467f9c1c0cba534998d /sql-common | |
parent | 0d98da70adcfd5f4963c9ba9a898a278f3df7d7f (diff) | |
download | mariadb-git-e4f887ad20db0fb16d6851acb05c0410c11f63e3.tar.gz |
initialize mysql->charset in mysql_init
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 7264605b247..3de2483ef75 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -1422,6 +1422,7 @@ mysql_init(MYSQL *mysql) bzero((char*) (mysql),sizeof(*(mysql))); mysql->options.connect_timeout= CONNECT_TIMEOUT; mysql->last_used_con= mysql->next_slave= mysql->master = mysql; + mysql->charset=default_charset_info; strmov(mysql->net.sqlstate, not_error_sqlstate); /* By default, we are a replication pivot. The caller must reset it |