未验证 提交 c6502e40 编写于 作者: O openharmony_ci 提交者: Gitee

!548 fix: exec trigger match

Merge pull request !548 from 熊磊/0425xytExecTriggerMatch
...@@ -389,11 +389,12 @@ static int ExecTriggerMatch_(const TriggerWorkSpace *workSpace, ...@@ -389,11 +389,12 @@ static int ExecTriggerMatch_(const TriggerWorkSpace *workSpace,
PARAM_CHECK(head != NULL, return 0, "Failed to get header %d", type); PARAM_CHECK(head != NULL, return 0, "Failed to get header %d", type);
TriggerNode *trigger = head->nextTrigger(head, NULL); TriggerNode *trigger = head->nextTrigger(head, NULL);
while (trigger != NULL) { while (trigger != NULL) {
TriggerNode *next = head->nextTrigger(head, trigger);
const char *condition = head->getCondition(trigger); const char *condition = head->getCondition(trigger);
if (head->checkCondition(calculator, condition, content, contentSize) == 1) { if (head->checkCondition(calculator, condition, content, contentSize) == 1) {
calculator->triggerCheckDone(trigger, content, contentSize); calculator->triggerCheckDone(trigger, content, contentSize);
} }
trigger = head->nextTrigger(head, trigger); trigger = next;
} }
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册