We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a19377 commit 32acf17Copy full SHA for 32acf17
libs/fsm/fsm.c
@@ -110,6 +110,7 @@ bool am_fsm_is_in(const struct am_fsm *fsm, const am_fsm_state_fn state) {
110
void am_fsm_ctor(struct am_fsm *fsm, const am_fsm_state_fn state) {
111
AM_ASSERT(fsm);
112
AM_ASSERT(state);
113
+ memset(fsm, 0, sizeof(*fsm));
114
fsm->state = state;
115
}
116
0 commit comments