summaryrefslogtreecommitdiff
path: root/src/responder/nss
diff options
context:
space:
mode:
authorNick Guay <nguay@redhat.com>2012-07-18 11:55:35 -0400
committerJakub Hrozek <jhrozek@redhat.com>2012-07-18 20:07:45 +0200
commit8bbf89c5ab798c112773fe23515c3a9df56dde71 (patch)
treed25ac1f047e70fd01d4c636d9cc743ffeddaa0e9 /src/responder/nss
parentcd52ba11971c5bbfd2fdfc114b0f1c66caa512bf (diff)
downloadsssd-8bbf89c5ab798c112773fe23515c3a9df56dde71.tar.gz
sssd-8bbf89c5ab798c112773fe23515c3a9df56dde71.tar.bz2
sssd-8bbf89c5ab798c112773fe23515c3a9df56dde71.zip
Fix uninitialized values
https://fedorahosted.org/sssd/ticket/1379
Diffstat (limited to 'src/responder/nss')
-rw-r--r--src/responder/nss/nsssrv_services.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/responder/nss/nsssrv_services.c b/src/responder/nss/nsssrv_services.c
index e0ee21c3..90698231 100644
--- a/src/responder/nss/nsssrv_services.c
+++ b/src/responder/nss/nsssrv_services.c
@@ -597,7 +597,8 @@ fill_service(struct sss_packet *packet,
errno_t ret;
unsigned int msg_count = *count;
size_t rzero, rsize, aptr;
- unsigned int num, i, j;
+ unsigned int num = 0;
+ unsigned int i, j;
uint32_t num_aliases, written_aliases;
struct ldb_message *msg;
struct ldb_message_element *el;
@@ -623,7 +624,6 @@ fill_service(struct sss_packet *packet,
rzero = 2 * sizeof(uint32_t);
rsize = 0;
- num = 0;
for (i = 0; i < msg_count; i++) {
talloc_zfree(tmp_ctx);
tmp_ctx = talloc_new(NULL);
@@ -1472,7 +1472,7 @@ static void
setservent_step_done(struct tevent_req *req)
{
errno_t ret;
- struct ldb_result *res;
+ struct ldb_result *res = NULL;
struct setent_step_ctx *step_ctx =
tevent_req_callback_data(req, struct setent_step_ctx);
struct nss_dom_ctx *dctx = step_ctx->dctx;