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 f6dee10 commit 340bc8fCopy full SHA for 340bc8f
lib/smf/smf.c
@@ -38,7 +38,7 @@ static const struct smf_state *get_child_of(const struct smf_state *states,
38
{
39
const struct smf_state *state = states;
40
41
- while (state) {
+ while (state != NULL) {
42
if (state->parent == parent) {
43
return state;
44
}
0 commit comments