Fixed valgrind error, caused by incorrect pointer arithetic

parent a508260b
...@@ -8006,16 +8006,14 @@ procedure_list2: ...@@ -8006,16 +8006,14 @@ procedure_list2:
| procedure_item; | procedure_item;
procedure_item: procedure_item:
remember_name expr remember_name expr remember_end
{ {
THD *thd= YYTHD; THD *thd= YYTHD;
Lex_input_stream *lip= thd->m_lip;
if (add_proc_to_list(thd, $2)) if (add_proc_to_list(thd, $2))
MYSQL_YYABORT; MYSQL_YYABORT;
if (!$2->name) if (!$2->name)
$2->set_name($1,(uint) ((char*) lip->get_tok_end() - $1), $2->set_name($1, (uint) ($3 - $1), thd->charset());
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