Commit 4df473b8 authored by unknown's avatar unknown

few compile-time bugs fixed


include/mysql.h:
  fixed compile-time bug
sql/sql_class.cc:
  fixed compile-time bug
sql/sql_class.h:
  fixed compile-time bug
parent 30ced7f7
......@@ -229,7 +229,7 @@ typedef struct st_mysql
my_bool reconnect; /* set to 1 if automatic reconnect */
/* session-wide random string */
char scramble[max(SCRAMBLE_LENGTH,SCRAMBLE_LENGTH_323)+1];
char scramble[SCRAMBLE_LENGTH+1];
/*
Set if this is the original connection, not a master or a slave we have
......
......@@ -139,7 +139,7 @@ THD::THD():user_time(0), is_fatal_error(0),
set_query_id=1;
db_access=NO_ACCESS;
version=refresh_version; // For boot
*scramble= *scramble_323= '\0';
*scramble= '\0';
init();
/* Initialize sub structures */
......
......@@ -547,7 +547,7 @@ public:
DYNAMIC_ARRAY user_var_events;
/* scramble - random string sent to client on handshake */
char scramble[max(SCRAMBLE_LENGTH, SCRAMBLE_LENGTH_323)+1];
char scramble[SCRAMBLE_LENGTH+1];
uint8 query_cache_type; // type of query cache processing
bool slave_thread;
......
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