Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/smf/smf.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void smf_set_initial(struct smf_ctx *const ctx, const struct smf_state *init_sta
* The final target will be the deepest leaf state that
* the target contains. Set that as the real target.
*/
while (init_state->initial) {
while (init_state->initial != NULL) {
init_state = init_state->initial;
}
#endif
Expand Down Expand Up @@ -351,7 +351,7 @@ void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *new_state)
* The final target will be the deepest leaf state that
* the target contains. Set that as the real target.
*/
while (new_state->initial) {
while (new_state->initial != NULL) {
new_state = new_state->initial;
}
#endif
Expand Down