summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/log.c
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/slapd/log.c
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/slapd/log.c')
-rw-r--r--ldap/servers/slapd/log.c2
1 files changed, 1 insertions, 1 deletions
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);