Преглед изворни кода

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;