summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-12-12 07:44:29 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-12-12 07:45:52 -0500
commit57170bd05e64559a604c1907c59728e8d9e83cd4 (patch)
tree0cf848b3eca8b0e5eb318edf7f608c5e2ecd6fb0 /src
parent9406fc6a1813ca99edca6a630bacc0a148121b52 (diff)
downloadsssd-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
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_netgroups.c1
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]);