1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed core dump bug in mysqltest

Added DBUG_ code to lib_vio.c


client/mysqltest.c:
  Fixed core dump bug
libmysqld/lib_vio.c:
  Added DBUG_ code
This commit is contained in:
unknown
2002-05-26 16:53:57 +03:00
parent 31990c309d
commit 6ec00a6692
2 changed files with 16 additions and 9 deletions

View File

@ -42,7 +42,7 @@
**********************************************************************/
#define MTEST_VERSION "1.21"
#define MTEST_VERSION "1.22"
#include <my_global.h>
#include <mysql_embed.h>
@ -1451,7 +1451,7 @@ int do_connect(struct st_query* q)
if (!con_db[0])
con_db=db;
/* Special database to allow one to connect without a database name */
if (!strcmp(con_db,"*NO-ONE*"))
if (con_db && !strcmp(con_db,"*NO-ONE*"))
con_db=0;
if ((con_error = safe_connect(&next_con->mysql, con_host,
con_user, con_pass,