Commit f4013d13 authored by Joerg Bruehe's avatar Joerg Bruehe

Fix a syntax error:

A variable declaration was preceded by "DBUG_PRINT()".

sql-common/client.c:
  Thou shalt not declare a variable after an executable statement
  (and "DBUG_PRINT()" is executable).
parent 4aa12dd3
......@@ -2350,8 +2350,8 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
(unix_socket || mysql_unix_port) &&
(!host || !strcmp(host,LOCAL_HOST)))
{
DBUG_PRINT("info", ("Using socket"));
my_socket sock= socket(AF_UNIX, SOCK_STREAM, 0);
DBUG_PRINT("info", ("Using socket"));
if (sock == SOCKET_ERROR)
{
set_mysql_extended_error(mysql, CR_SOCKET_CREATE_ERROR,
......
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