pull/6763/head^2
Gokhan Gulbiz 2023-03-15 09:01:41 +03:00
parent da24f2fd62
commit c60de03d6a
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 6 additions and 6 deletions

View File

@ -690,15 +690,15 @@ ExtractTopComment(const char *inputString)
int commentEndCharsIndex = 0; int commentEndCharsIndex = 0;
/* If query starts with a comment */ /* If query starts with a comment */
if (inputString[commentEndCharsIndex] == '/' && inputString[commentEndCharsIndex + if (inputString[commentEndCharsIndex] == '/' &&
1] == '*') inputString[commentEndCharsIndex + 1] == '*')
{ {
/* Skip the comment start characters */ /* Skip the comment start characters */
commentEndCharsIndex += commentStartCharsLength; commentEndCharsIndex += commentStartCharsLength;
while (inputString[commentEndCharsIndex] && commentEndCharsIndex < while (inputString[commentEndCharsIndex] &&
inputStringLen && !(inputString[commentEndCharsIndex] == '*' && commentEndCharsIndex < inputStringLen &&
inputString !(inputString[commentEndCharsIndex] == '*' &&
[commentEndCharsIndex + 1] == '/')) inputString [commentEndCharsIndex + 1] == '/'))
{ {
commentEndCharsIndex++; commentEndCharsIndex++;
} }