mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge of mysql-5.1-bugteam into mysql-5.5-bugteam.
This commit is contained in:
@ -117,6 +117,7 @@ size_t nmatch;
|
||||
my_regmatch_t pmatch[];
|
||||
int eflags;
|
||||
{
|
||||
char *pstr = (char *) str;
|
||||
register struct re_guts *g = preg->re_g;
|
||||
#ifdef REDEBUG
|
||||
# define GOODFLAGS(f) (f)
|
||||
@ -133,7 +134,7 @@ int eflags;
|
||||
|
||||
if ((size_t) g->nstates <= CHAR_BIT*sizeof(states1) &&
|
||||
!(eflags®_LARGE))
|
||||
return(smatcher(preg->charset, g, (char *)str, nmatch, pmatch, eflags));
|
||||
return(smatcher(preg->charset, g, pstr, nmatch, pmatch, eflags));
|
||||
else
|
||||
return(lmatcher(preg->charset, g, (char *)str, nmatch, pmatch, eflags));
|
||||
return(lmatcher(preg->charset, g, pstr, nmatch, pmatch, eflags));
|
||||
}
|
||||
|
Reference in New Issue
Block a user