summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorJoerg Bruehe <joerg@mysql.com>2010-03-16 20:10:45 +0100
committerJoerg Bruehe <joerg@mysql.com>2010-03-16 20:10:45 +0100
commitf4013d1302d63909a362807eb2e4756cfff204b7 (patch)
tree5efdcd71dd0634a6ba63bab4a7b449a557d8fc6f /sql-common
parent4aa12dd34c53d84dc3d619fa5ced7c0b7a56ae5b (diff)
downloadmariadb-git-f4013d1302d63909a362807eb2e4756cfff204b7.tar.gz
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).
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index 88da0242f5b..676ec82d8de 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -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,