Fixed use of uninitialized memory.

This commit is contained in:
VilhoRaatikka
2014-10-31 23:47:33 +02:00
parent 8aff04b0e9
commit 5a2d492fe8

View File

@ -595,8 +595,8 @@ static skygw_query_type_t resolve_query_type(
/** Written to binlog, that is, replicated except tmp tables */
type |= QUERY_TYPE_WRITE; /*< to master */
if (lex->create_info.options & HA_LEX_CREATE_TMP_TABLE &&
lex->sql_command == SQLCOM_CREATE_TABLE)
if (lex->sql_command == SQLCOM_CREATE_TABLE &&
(lex->create_info.options & HA_LEX_CREATE_TMP_TABLE))
{
type |= QUERY_TYPE_CREATE_TMP_TABLE; /*< remember in router */
}