소스 검색

Moved a part of PR_ASSERT after the variable is initialized.

Noriko Hosoi 20 년 전
부모
커밋
3e048eb985
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ldap/servers/plugins/replication/cl5_api.c

+ 2 - 2
ldap/servers/plugins/replication/cl5_api.c

@@ -2387,9 +2387,9 @@ static int _cl5Entry2DBData (const CL5Entry *entry, char **data, PRUint32 *len)
 	char *rawDN = NULL;
 	char s[CSN_STRSIZE];		
 
-	PR_ASSERT (entry && entry->op && data && len && op->target_address.uniqueid);
-
+	PR_ASSERT (entry && entry->op && data && len);
 	op = entry->op;
+	PR_ASSERT (op->target_address.uniqueid);
 
 	/* compute size of the buffer needed to hold the data */
 	size += CSN_STRSIZE;