1
0
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:
serg@janus.mylan
2007-01-28 21:11:42 +01:00
parent b9008b0e1b
commit 24186aa176
2 changed files with 9 additions and 8 deletions

View File

@ -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;
}