瀏覽代碼

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

Nathan Kinder 17 年之前
父節點
當前提交
c1b2db5308
共有 2 個文件被更改,包括 2 次插入2 次删除
  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);