diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index f23ec1548c18ae68c5bbb6b8b6c249a1bf5e1406..f65e845e497f090a6f97992267c7cd6dc625f0ea 100644 --- a/src/client/src/tscSystem.c +++ b/src/client/src/tscSystem.c @@ -446,7 +446,7 @@ static int taos_set_config_imp(const char *config){ } taosInitGlobalCfg(); cJSON *root = cJSON_Parse(config); - if (root == NULL) { + if (root == NULL || !cJSON_IsObject(root) || cJSON_GetArraySize(root) == 0) { return -1; }