summaryrefslogtreecommitdiffstats
path: root/ldap/servers
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2008-04-03 17:18:11 +0000
committerNathan Kinder <nkinder@redhat.com>2008-04-03 17:18:11 +0000
commitc1b2db5308dd275d16d96ae57e37aad73aa4bd2a (patch)
tree2d07893d067ec6913ea9b002470da0da3150718b /ldap/servers
parent58b91ec4cb2b7b4ede0b9cb48bf54c1ca9c34d78 (diff)
downloadds-c1b2db5308dd275d16d96ae57e37aad73aa4bd2a.tar.gz
ds-c1b2db5308dd275d16d96ae57e37aad73aa4bd2a.tar.xz
ds-c1b2db5308dd275d16d96ae57e37aad73aa4bd2a.zip
Resolves: 440333
Summary: Fixed valrgind errors about use of unitialized values.
Diffstat (limited to 'ldap/servers')
-rw-r--r--ldap/servers/plugins/acl/acl_ext.c2
-rw-r--r--ldap/servers/slapd/log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ldap/servers/plugins/acl/acl_ext.c b/ldap/servers/plugins/acl/acl_ext.c
index 93988a64..de041017 100644
--- a/ldap/servers/plugins/acl/acl_ext.c
+++ b/ldap/servers/plugins/acl/acl_ext.c
@@ -647,7 +647,7 @@ acl_init_aclpb ( Slapi_PBlock *pb , Acl_PBlock *aclpb, const char *dn, int copy_
struct acl_cblock *aclcb = NULL;
char *authType;
void *conn;
- unsigned long op_type;
+ int op_type;
if ( NULL == aclpb ) {
diff --git a/ldap/servers/slapd/log.c b/ldap/servers/slapd/log.c
index cc4c6cd4..ac055e08 100644
--- a/ldap/servers/slapd/log.c
+++ b/ldap/servers/slapd/log.c
@@ -4007,7 +4007,7 @@ log_convert_time (time_t ctime, char *tbuf, int type)
static time_t
log_reverse_convert_time(char *tbuf)
{
- struct tm tm;
+ struct tm tm = {0};
if (strchr(tbuf, '-')) { /* short format */
strptime(tbuf, "%Y%m%d-%H%M%S", &tm);