Bläddra i källkod

Moved a part of PR_ASSERT after the variable is initialized.

Noriko Hosoi 20 år sedan
förälder
incheckning
3e048eb985
1 ändrade filer med 2 tillägg och 2 borttagningar
  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;