mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
dbug: don't consider double colom (::) a separator -
it can be part of a function name (Item::reset)
This commit is contained in:
@ -1995,12 +1995,14 @@ static char *DbugMalloc(size_t size)
|
||||
|
||||
|
||||
/*
|
||||
* strtok lookalike - splits on ':', magically handles :\ and :/
|
||||
* strtok lookalike - splits on ':', magically handles ::, :\ and :/
|
||||
*/
|
||||
|
||||
static const char *DbugStrTok(const char *s)
|
||||
{
|
||||
while (s[0] && (s[0] != ':' || (s[1] == '\\' || s[1] == '/')))
|
||||
const char *start=s;
|
||||
while (s[0] && (s[0] != ':' ||
|
||||
(s[1] == '\\' || s[1] == '/' || (s[1] == ':' && s++))))
|
||||
s++;
|
||||
return s;
|
||||
}
|
||||
|
Reference in New Issue
Block a user