fix some test case
This commit is contained in:
@@ -212,7 +212,7 @@ fqdn_plugin_accept_tag_match(struct fqdn_plugin_schema *schema,
|
||||
cJSON *tmp_obj = NULL;
|
||||
|
||||
tmp_obj = cJSON_GetObjectItem(json, "effective_range");
|
||||
if (tmp_obj != NULL && n_tag > 0) {
|
||||
if ((tmp_obj && cJSON_GetArraySize(tmp_obj) > 0) && n_tag > 0) {
|
||||
|
||||
char *tag_str = cJSON_Print(tmp_obj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user