浏览代码

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 *rawDN = NULL;
 	char s[CSN_STRSIZE];		
 	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;
 	op = entry->op;
+	PR_ASSERT (op->target_address.uniqueid);
 
 
 	/* compute size of the buffer needed to hold the data */
 	/* compute size of the buffer needed to hold the data */
 	size += CSN_STRSIZE;
 	size += CSN_STRSIZE;