Commit 4079fb3f authored by unknown's avatar unknown

Fix valgrind error after 5.5 merge (the 5.3 fix was accidentally lost in the merge).

parent da9bcee2
...@@ -732,7 +732,7 @@ static sp_head *sp_compile(THD *thd, String *defstr, ulonglong sql_mode, ...@@ -732,7 +732,7 @@ static sp_head *sp_compile(THD *thd, String *defstr, ulonglong sql_mode,
thd->variables.sql_mode= sql_mode; thd->variables.sql_mode= sql_mode;
thd->variables.select_limit= HA_POS_ERROR; thd->variables.select_limit= HA_POS_ERROR;
if (parser_state.init(thd, defstr->c_ptr(), defstr->length())) if (parser_state.init(thd, defstr->c_ptr_safe(), defstr->length()))
{ {
thd->variables.sql_mode= old_sql_mode; thd->variables.sql_mode= old_sql_mode;
thd->variables.select_limit= old_select_limit; thd->variables.select_limit= old_select_limit;
......
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