Merge pull request #17271 from taosdata/feat/TD-17777-V30

fix(shell): lastWord need add one byte for 3.0
This commit is contained in:
Shengliang Guan 2022-10-10 18:49:11 +08:00 committed by GitHub
commit 46c609a0e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1268,7 +1268,7 @@ char* lastWord(char* p) {
char* p2 = strrchr(p, ',');
if (p1 && p2) {
return p1 > p2 ? p1 : p2 + 1;
return p1 > p2 ? p1 + 1 : p2 + 1;
} else if (p1) {
return p1 + 1;
} else if (p2) {