Commit 4b435ac7 authored by unknown's avatar unknown

Fixed valgrind error, caused by incorrect pointer arithetic


sql/sql_yacc.yy:
  Fixed valgrind error: the same buffer (preprocessed) should be used when extracting the text of expr
parent f09496c8
......@@ -8006,16 +8006,14 @@ procedure_list2:
| procedure_item;
procedure_item:
remember_name expr
remember_name expr remember_end
{
THD *thd= YYTHD;
Lex_input_stream *lip= thd->m_lip;
if (add_proc_to_list(thd, $2))
MYSQL_YYABORT;
if (!$2->name)
$2->set_name($1,(uint) ((char*) lip->get_tok_end() - $1),
thd->charset());
$2->set_name($1, (uint) ($3 - $1), thd->charset());
}
;
......
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