From: Pierangelo Masarati Date: Sat, 17 Nov 2001 14:24:27 +0000 (+0000) Subject: minor cleanup X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~847 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0f30fb0d8f0adbbb7b41fd455c57aa56d64c9853;p=openldap minor cleanup --- diff --git a/servers/slapd/back-ldap/group.c b/servers/slapd/back-ldap/group.c index 2080f64c15..8d2df9814e 100644 --- a/servers/slapd/back-ldap/group.c +++ b/servers/slapd/back-ldap/group.c @@ -39,7 +39,7 @@ ldap_back_group( LDAPMessage *result; char *gattr[2]; - char *filter; + char *filter = NULL; LDAP *ld; char *mop_ndn, *mgr_ndn; diff --git a/servers/slapd/back-ldap/modify.c b/servers/slapd/back-ldap/modify.c index e1e54052f9..4d97a94060 100644 --- a/servers/slapd/back-ldap/modify.c +++ b/servers/slapd/back-ldap/modify.c @@ -57,7 +57,7 @@ ldap_back_modify( { struct ldapinfo *li = (struct ldapinfo *) be->be_private; struct ldapconn *lc; - LDAPMod **modv; + LDAPMod **modv = NULL; LDAPMod *mods; Modifications *ml; int i; diff --git a/servers/slapd/back-ldap/unbind.c b/servers/slapd/back-ldap/unbind.c index eb8db9608b..80b3981867 100644 --- a/servers/slapd/back-ldap/unbind.c +++ b/servers/slapd/back-ldap/unbind.c @@ -56,11 +56,11 @@ ldap_back_conn_destroy( #ifdef NEW_LOGGING LDAP_LOG(( "backend", LDAP_LEVEL_INFO, - "ldap_back_conn_destroy: fetching conn %d\n", + "ldap_back_conn_destroy: fetching conn %ld\n", conn->c_connid )); #else /* !NEW_LOGGING */ Debug( LDAP_DEBUG_TRACE, - "=>ldap_back_conn_destroy: fetching conn %d\n", + "=>ldap_back_conn_destroy: fetching conn %ld\n", conn->c_connid, 0, 0 ); #endif /* !NEW_LOGGING */ @@ -72,7 +72,7 @@ ldap_back_conn_destroy( if (lc) { Debug( LDAP_DEBUG_TRACE, - "=>ldap_back_conn_destroy: destroying conn %d\n", + "=>ldap_back_conn_destroy: destroying conn %ld\n", lc->conn->c_connid, 0, 0 ); #ifdef ENABLE_REWRITE