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 5b0b1a3 commit 52cfef4Copy full SHA for 52cfef4
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