Add an additional comment

Co-authored-by: Jelte Fennema <github-tech@jeltef.nl>
pull/6753/head
Gokhan Gulbiz 2023-03-21 11:22:08 +03:00 committed by GitHub
parent 1df9260f82
commit 3f61a62420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -630,6 +630,8 @@ ExtractTopComment(const char *inputString)
/* Skip the comment start characters */
commentEndCharsIndex += commentStartCharsLength;
/* Find the first comment end character */
while (commentEndCharsIndex < inputStringLen &&
!(inputString[commentEndCharsIndex] == '*' &&
inputString [commentEndCharsIndex + 1] == '/'))