1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Code cleanup

client/mysql.cc:
  Don't call mysql_close() on not initialized object
sql/field.cc:
  code cleanup
This commit is contained in:
unknown
2003-12-18 01:13:52 +02:00
parent fd3235dcd3
commit 6b1e06e620
2 changed files with 6 additions and 3 deletions

View File

@@ -2228,8 +2228,11 @@ static int
sql_real_connect(char *host,char *database,char *user,char *password,
uint silent)
{
mysql_close(&mysql);
connected= 0;
if (connected)
{
connected= 0;
mysql_close(&mysql);
}
mysql_init(&mysql);
if (opt_connect_timeout)
{