summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-12-08 11:10:52 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-12-08 12:31:46 -0500
commita73671c0d39c52b40dc6422c66bebef5552a7011 (patch)
tree3db7d478bfee222e3f70ff79369871d829e6b3cb /server
parent4bef93eb16938efae6dd110790f5f57c76eb9117 (diff)
downloadsssd-a73671c0d39c52b40dc6422c66bebef5552a7011.tar.gz
sssd-a73671c0d39c52b40dc6422c66bebef5552a7011.tar.xz
sssd-a73671c0d39c52b40dc6422c66bebef5552a7011.zip
Avoid returning uninitialized result.
If grouplist was a zero-length array, we would return ret unitialized.
Diffstat (limited to 'server')
-rw-r--r--server/tools/tools_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/tools/tools_util.c b/server/tools/tools_util.c
index b509ccb26..97945238e 100644
--- a/server/tools/tools_util.c
+++ b/server/tools/tools_util.c
@@ -207,6 +207,7 @@ int check_group_names(struct tools_ctx *tctx,
return ENOMEM;
}
+ ret = EOK;
for (i=0; grouplist[i]; ++i) {
ret = sysdb_getgrnam_sync(tctx,
tctx->ev,