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

View File

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