From 8e1e827242f6ce6d798c33b9034a5ba8c4a7dc0d Mon Sep 17 00:00:00 2001 From: Gokhan Gulbiz Date: Thu, 16 Mar 2023 11:00:37 +0300 Subject: [PATCH] Remove unnecessary check --- src/backend/distributed/utils/attribute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/distributed/utils/attribute.c b/src/backend/distributed/utils/attribute.c index 84d56f1d2..9aef7b156 100644 --- a/src/backend/distributed/utils/attribute.c +++ b/src/backend/distributed/utils/attribute.c @@ -697,8 +697,7 @@ ExtractTopComment(const char *inputString) { /* Skip the comment start characters */ commentEndCharsIndex += commentStartCharsLength; - while (inputString[commentEndCharsIndex] && - commentEndCharsIndex < inputStringLen && + while (commentEndCharsIndex < inputStringLen && !(inputString[commentEndCharsIndex] == '*' && inputString [commentEndCharsIndex + 1] == '/')) { @@ -778,7 +777,8 @@ UnescapeCommentChars(const char *str) { if (str[originalStringindex] == '\\' && originalStringindex < originalStringLength - 1 && (str[originalStringindex + 1] == '*' || - str[originalStringindex + 1] == '/')) + str + [originalStringindex + 1] == '/')) { originalStringindex++; }