Fix build issue on VS2008

This commit is contained in:
Doubango Telecom 2017-04-05 21:32:07 +02:00
parent e6611dde0d
commit ee90f5044e
1 changed files with 2 additions and 1 deletions

View File

@ -130,6 +130,7 @@ int tsk_fsm_act(tsk_fsm_t* self, tsk_fsm_action_id action, const void* cond_data
tsk_bool_t found = tsk_false;
tsk_bool_t terminates = tsk_false; /* thread-safeness -> DO NOT REMOVE THIS VARIABLE */
int ret_exec = 0; /* success */
tsk_fsm_entry_t* entry;
if(!self) {
TSK_DEBUG_ERROR("Invalid parameter");
@ -148,7 +149,7 @@ int tsk_fsm_act(tsk_fsm_t* self, tsk_fsm_action_id action, const void* cond_data
if (!item || !item->data) {
continue;
}
tsk_fsm_entry_t* entry = (tsk_fsm_entry_t*)item->data;
entry = (tsk_fsm_entry_t*)item->data;
if(((entry->from != tsk_fsm_state_any) && (entry->from != tsk_fsm_state_current)) && (entry->from != self->current)) {
continue;
}