1
0
Эх сурвалжийг харах

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

Nathan Kinder 17 жил өмнө
parent
commit
c1b2db5308

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