summaryrefslogtreecommitdiff
path: root/src/providers/ldap/sdap_sudo.c
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/providers/ldap/sdap_sudo.c
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/providers/ldap/sdap_sudo.c')
-rw-r--r--src/providers/ldap/sdap_sudo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c
index 0d590023..cd3435b8 100644
--- a/src/providers/ldap/sdap_sudo.c
+++ b/src/providers/ldap/sdap_sudo.c
@@ -437,8 +437,8 @@ static void sdap_sudo_reply(struct tevent_req *req)
{
struct be_req *be_req = NULL;
struct be_sudo_req *sudo_req = NULL;
- int dp_error;
- int error;
+ int dp_error = DP_ERR_OK;
+ int error = EOK;
int ret;
be_req = tevent_req_callback_data(req, struct be_req);
@@ -926,8 +926,8 @@ static void sdap_sudo_periodical_first_refresh_done(struct tevent_req *req)
struct tevent_req *subreq = NULL; /* req from sdap_sudo_full_refresh_send() */
struct sdap_sudo_ctx *sudo_ctx = NULL;
time_t delay;
- int dp_error;
- int error;
+ int dp_error = DP_ERR_OK;
+ int error = EOK;
int ret;
ret = sdap_sudo_timer_recv(req, req, &subreq);
@@ -985,8 +985,8 @@ static void sdap_sudo_periodical_full_refresh_done(struct tevent_req *req)
struct tevent_req *subreq = NULL; /* req from sdap_sudo_full_refresh_send() */
struct sdap_sudo_ctx *sudo_ctx = NULL;
time_t delay;
- int dp_error;
- int error;
+ int dp_error = DP_ERR_OK;
+ int error = EOK;
int ret;
ret = sdap_sudo_timer_recv(req, req, &subreq);