From: Hallvard Furuseth Date: Mon, 2 May 2011 17:54:51 +0000 (+0200) Subject: ITS#6932: Move assert(str) before Debug(..str). X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~1388 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=071c5800ebb7d52d88a6ed02de7912330033e5a0;p=thirdparty%2Fopenldap.git ITS#6932: Move assert(str) before Debug(..str). --- diff --git a/servers/slapd/back-sql/entry-id.c b/servers/slapd/back-sql/entry-id.c index 7dec34a809..c6f4288733 100644 --- a/servers/slapd/back-sql/entry-id.c +++ b/servers/slapd/back-sql/entry-id.c @@ -182,9 +182,9 @@ backsql_dn2id( } /* begin TimesTen */ + assert( bi->sql_id_query != NULL ); Debug( LDAP_DEBUG_TRACE, " backsql_dn2id(\"%s\"): id_query \"%s\"\n", ndn->bv_val, bi->sql_id_query, 0 ); - assert( bi->sql_id_query != NULL ); rc = backsql_Prepare( dbh, &sth, bi->sql_id_query, 0 ); if ( rc != SQL_SUCCESS ) { Debug( LDAP_DEBUG_TRACE, @@ -406,9 +406,9 @@ backsql_count_children( } /* begin TimesTen */ + assert( bi->sql_has_children_query != NULL ); Debug(LDAP_DEBUG_TRACE, "children id query \"%s\"\n", bi->sql_has_children_query, 0, 0); - assert( bi->sql_has_children_query != NULL ); rc = backsql_Prepare( dbh, &sth, bi->sql_has_children_query, 0 ); if ( rc != SQL_SUCCESS ) { Debug( LDAP_DEBUG_TRACE,