Commit 70d6236a authored by sjaakola's avatar sjaakola Committed by Nirbhay Choubey

refs codership/mysql-wsrep#55 - To avoid compiler warming:

sql/sql_parse.cc: In function 'bool do_command(THD*)':

sql/sql_parse.cc:758:20: error: 'packet_length' may be used uninitialized in this function [-Werror=maybe-uninitialized]

   if ((WSREP(thd)  && packet_length == packet_error) ||
[
parent f6b1e0fe
...@@ -693,7 +693,11 @@ bool do_command(THD *thd) ...@@ -693,7 +693,11 @@ bool do_command(THD *thd)
{ {
bool return_value; bool return_value;
char *packet= 0; char *packet= 0;
#ifdef WITH_WSREP
ulong packet_length= 0; // just to avoid (false positive) compiler warning
#else
ulong packet_length; ulong packet_length;
#endif /* WITH_WSREP */
NET *net= &thd->net; NET *net= &thd->net;
enum enum_server_command command; enum enum_server_command command;
DBUG_ENTER("do_command"); DBUG_ENTER("do_command");
......
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