summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2016-09-09 16:35:31 +0600
committerAlexander Kuleshov <kuleshovmail@gmail.com>2016-09-09 16:35:31 +0600
commit077da07c946312f1b80d51e2883fe6d730115578 (patch)
treed95d5ef9bc619c68bc0d38ca55f299de50636d8c /sql-common
parenta2b8bdfbb98a193cdaf1e331819446db94c2f362 (diff)
downloadmariadb-git-077da07c946312f1b80d51e2883fe6d730115578.tar.gz
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.
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index fdb17a63ba5..e52b84f2764 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -3118,7 +3118,6 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
DBUG_RETURN(0);
mysql->methods= &client_methods;
- net->vio = 0; /* If something goes wrong */
mysql->client_flag=0; /* For handshake */
/* use default options */