| 446 | |
| 447 | |
| 448 | const char * |
| 449 | parse_escaped_string(const char *ptr, const char *end, MEM_ROOT *mem_root, |
| 450 | LEX_STRING *str) |
| 451 | { |
| 452 | const char *eol= strchr(ptr, '\n'); |
| 453 | |
| 454 | if (eol == 0 || eol >= end || |
| 455 | !(str->str= (char*) alloc_root(mem_root, (eol - ptr) + 1)) || |
| 456 | read_escaped_string(ptr, eol, str)) |
| 457 | return 0; |
| 458 | |
| 459 | return eol+1; |
| 460 | } |
| 461 | |
| 462 | |
| 463 | /** |
no test coverage detected