提交 c32f5cd8 编写于 作者: X xionglei6

fix: exec trigger match

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 40b3f0e0
......@@ -389,11 +389,12 @@ static int ExecTriggerMatch_(const TriggerWorkSpace *workSpace,
PARAM_CHECK(head != NULL, return 0, "Failed to get header %d", type);
TriggerNode *trigger = head->nextTrigger(head, NULL);
while (trigger != NULL) {
TriggerNode *next = head->nextTrigger(head, trigger);
const char *condition = head->getCondition(trigger);
if (head->checkCondition(calculator, condition, content, contentSize) == 1) {
calculator->triggerCheckDone(trigger, content, contentSize);
}
trigger = head->nextTrigger(head, trigger);
trigger = next;
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册