From 8893018369cca660c8fb14fb13480ba3e0923c51 Mon Sep 17 00:00:00 2001 From: sxyseo Date: Fri, 14 Jan 2022 12:27:31 +0800 Subject: [PATCH] fix: Local variable loopCont is assigned only once. (#9524) --- src/client/src/tscPrepare.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscPrepare.c b/src/client/src/tscPrepare.c index e4ed16518f..ea6ad8a48d 100644 --- a/src/client/src/tscPrepare.c +++ b/src/client/src/tscPrepare.c @@ -1534,10 +1534,10 @@ int stmtGenInsertStatement(SSqlObj* pSql, STscStmt* pStmt, const char* name, TAO } int32_t stmtValidateValuesFields(SSqlCmd *pCmd, char * sql) { - int32_t loopCont = 1, index0 = 0, values = 0; + int32_t index0 = 0, values = 0; SStrToken sToken; - while (loopCont) { + while (1) { sToken = tStrGetToken(sql, &index0, false); if (sToken.n <= 0) { return TSDB_CODE_SUCCESS; -- GitLab