Fixed modutil_count_statements not igoring trailing whitespace.
This commit is contained in:
@ -837,7 +837,11 @@ int modutil_count_statements(GWBUF* buffer)
|
|||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(*(end - 1) == ';')
|
ptr = end - 1;
|
||||||
|
while(isspace(*ptr))
|
||||||
|
ptr--;
|
||||||
|
|
||||||
|
if(*ptr == ';')
|
||||||
{
|
{
|
||||||
num--;
|
num--;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user