summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-02-11 00:52:01 +0000
committerStef Walter <stef@memberwebs.com>2005-02-11 00:52:01 +0000
commit13d00aacc2e8b2326ab3f33ee6332e47ca8aadb1 (patch)
tree99ab0833ffcc8a6254e67d0c23e38bae96614c00 /daemon
parentfea22a1c49416b3ef1036cd7ca3fc55ff7779499 (diff)
Fix uninitialized values
Diffstat (limited to 'daemon')
-rw-r--r--daemon/httpauthd.c2
-rw-r--r--daemon/ldap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c
index 0524fdd..b26eb60 100644
--- a/daemon/httpauthd.c
+++ b/daemon/httpauthd.c
@@ -629,7 +629,7 @@ static int httpauth_read(ha_request_t* rq, int ifd)
int i, r;
int more = 1;
- ASSERT(r);
+ ASSERT(rq);
ASSERT(ifd != -1);
/* Clean up the request header */
diff --git a/daemon/ldap.c b/daemon/ldap.c
index 6eae3f1..044490f 100644
--- a/daemon/ldap.c
+++ b/daemon/ldap.c
@@ -455,7 +455,7 @@ static int validate_ldap_ha1(const ha_request_t* rq, ldap_context_t* ctx, LDAP*
static LDAP* get_ldap_connection(const ha_request_t* rq, ldap_context_t* ctx)
{
- LDAP* ld;
+ LDAP* ld = NULL;
int i, r, create = 1;
ASSERT(ctx);