Work on State machine
FossilOrigin-Name: 87d98b73010c7316cb9b53b5ba8c3dfdddca06042630cf8437ea506e1c424c70
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user