diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-02-10 14:05:49 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-03-16 14:48:22 +0400 |
commit | 18e9c314e43271debf58f3c3e5bf454eab655799 (patch) | |
tree | cd2ff9ea71622f048b609873f4024eabfa965d3d /sql-common | |
parent | 10554ca6cbb6a02098b0cc1a55fb5426164ef348 (diff) | |
download | mariadb-git-18e9c314e43271debf58f3c3e5bf454eab655799.tar.gz |
MDEV-6650 - LINT_INIT emits code in non-debug builds
Replaced all references to LINT_INIT with UNINIT_VAR and LINT_INIT_STRUCT.
Removed LINT_INIT macro.
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 8d03ffef534..006b17374d0 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -3211,7 +3211,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user, uint port, const char *unix_socket,ulong client_flag) { char buff[NAME_LEN+USERNAME_LENGTH+100]; - int scramble_data_len, pkt_scramble_len= 0; + int scramble_data_len, UNINIT_VAR(pkt_scramble_len); char *end,*host_info= 0, *server_version_end, *pkt_end; char *scramble_data; const char *scramble_plugin; @@ -3224,7 +3224,6 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user, struct sockaddr_un UNIXaddr; #endif DBUG_ENTER("mysql_real_connect"); - LINT_INIT(pkt_scramble_len); DBUG_PRINT("enter",("host: %s db: %s user: %s (client)", host ? host : "(Null)", |