Commit 5374448a authored by unknown's avatar unknown

bug#13556 - (ndb) - incorrect parsing in tablespace code

  end_ptr to my_strtoll10 is in/out parameter


sql/sql_yacc.yy:
  init end_ptr as it's an in/out parameter, not only out
parent c4b12f64
...@@ -3215,9 +3215,9 @@ size_number: ...@@ -3215,9 +3215,9 @@ size_number:
ulonglong number, test_number; ulonglong number, test_number;
uint text_shift_number= 0; uint text_shift_number= 0;
longlong prefix_number; longlong prefix_number;
char *end_ptr;
char *start_ptr= $1.str; char *start_ptr= $1.str;
uint str_len= strlen(start_ptr); uint str_len= strlen(start_ptr);
char *end_ptr= start_ptr + str_len;
int error; int error;
prefix_number= my_strtoll10(start_ptr, &end_ptr, &error); prefix_number= my_strtoll10(start_ptr, &end_ptr, &error);
if ((start_ptr + str_len - 1) == end_ptr) if ((start_ptr + str_len - 1) == end_ptr)
......
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