From 74551380f78e6afeb99b58032c70e13d00a768ee Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Tue, 19 Oct 2021 13:27:05 +0800 Subject: [PATCH] TD-6129 add taos json key hash free function --- src/util/src/tutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/src/tutil.c b/src/util/src/tutil.c index 441ee74e16..4845da626b 100644 --- a/src/util/src/tutil.c +++ b/src/util/src/tutil.c @@ -470,9 +470,9 @@ bool isValidateTag(char *input) { if (!input) return false; int len = strlen(input); if (len == 0) return false; - if (input[0] != '_' || isalpha(input[0]) == 0) return false; + if (input[0] != '_' && isalpha(input[0]) == 0) return false; for (int i = 1; i < len; ++i) { - if (input[0] != '_' || isalnum(input[0]) == 0) return false; + if (input[i] != '_' && isalnum(input[i]) == 0) return false; } return true; } -- GitLab