diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-12-12 07:44:29 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-12-12 07:45:52 -0500 |
commit | 57170bd05e64559a604c1907c59728e8d9e83cd4 (patch) | |
tree | 0cf848b3eca8b0e5eb318edf7f608c5e2ecd6fb0 | |
parent | 9406fc6a1813ca99edca6a630bacc0a148121b52 (diff) | |
download | sssd-57170bd05e64559a604c1907c59728e8d9e83cd4.tar.gz sssd-57170bd05e64559a604c1907c59728e8d9e83cd4.tar.bz2 sssd-57170bd05e64559a604c1907c59728e8d9e83cd4.zip |
Fix uninitialized value error in ipa_netgroups.c
DEBUG message can print an unitialized value if the first netgroup
has no members.
Coverity 12382
-rw-r--r-- | src/providers/ipa/ipa_netgroups.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_netgroups.c b/src/providers/ipa/ipa_netgroups.c index fbe9ebf4..78bcee1b 100644 --- a/src/providers/ipa/ipa_netgroups.c +++ b/src/providers/ipa/ipa_netgroups.c @@ -863,6 +863,7 @@ static int ipa_netgr_process_all(struct ipa_get_netgroups_state *state) goto done; } + j = 0; if (ret == EOK) { for (j = 0; members[j]; j++) { key.str = discard_const(members[j]); |