Commit 077da07c authored by Alexander Kuleshov's avatar Alexander Kuleshov

no need to set net->vio to zero in mysql_real_connect

because it is zero always in this place as we have check for this above
which checks that net->vio isn't 0 and exit.
parent a2b8bdfb
...@@ -3118,7 +3118,6 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user, ...@@ -3118,7 +3118,6 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
DBUG_RETURN(0); DBUG_RETURN(0);
mysql->methods= &client_methods; mysql->methods= &client_methods;
net->vio = 0; /* If something goes wrong */
mysql->client_flag=0; /* For handshake */ mysql->client_flag=0; /* For handshake */
/* use default options */ /* use default options */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment