Explorar o código

Resolves: 440333
Summary: Fixed valrgind errors about use of unitialized values.

Nathan Kinder %!s(int64=17) %!d(string=hai) anos
pai
achega
c1b2db5308
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      ldap/servers/plugins/acl/acl_ext.c
  2. 1 1
      ldap/servers/slapd/log.c

+ 1 - 1
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 ) {

+ 1 - 1
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);