mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Merge with 4.0.17
This commit is contained in:
commit
e0cc6799ec
152 changed files with 2776 additions and 1235 deletions
|
|
@ -49,6 +49,16 @@ void regex_init(CHARSET_INFO *cs)
|
|||
for (i=0; i < CCLASS_LAST ; i++)
|
||||
{
|
||||
char *tmp=(char*) malloc(count[i]+1);
|
||||
if (!tmp)
|
||||
{
|
||||
/*
|
||||
This is very unlikely to happen as this function is called once
|
||||
at program startup
|
||||
*/
|
||||
fprintf(stderr,
|
||||
"Fatal error: Can't allocate memory in regex_init\n");
|
||||
exit(1);
|
||||
}
|
||||
memcpy(tmp,buff[i],count[i]*sizeof(char));
|
||||
tmp[count[i]]=0;
|
||||
cclasses[i].chars=tmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue