Work on State machine

FossilOrigin-Name: 87d98b73010c7316cb9b53b5ba8c3dfdddca06042630cf8437ea506e1c424c70
This commit is contained in:
7u83@mail.ru
2018-05-04 22:36:19 +00:00
parent 7d1ef1ff01
commit 9d3e24df52
25 changed files with 317 additions and 227 deletions

View File

@ -284,14 +284,16 @@ int cw_msgset_add(struct cw_MsgSet *set,
}
/* Overwrite the found message */
if (msgdef->name)
if (msgdef->name != NULL)
msg->name = msgdef->name;
if (msgdef->states)
if (msgdef->states != NULL)
msg->states = msgdef->states;
if (msgdef->postprocess != NULL)
msg->postprocess = msgdef->postprocess;
if (msgdef->preprocess != NULL)
msg->preprocess = msgdef->preprocess;
if (msgdef->next_state)
msg->next_state=msgdef->next_state;
msg->receiver = msgdef->receiver;