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