summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2010-09-03 11:22:31 -0700
committerNathan Kinder <nkinder@redhat.com>2010-09-03 11:22:31 -0700
commit644b5531bc27c0813298c79c3f1affd50dc40dbf (patch)
treeecc71c08175fd15c6f81d9983288c2df52df9839
parent8eddca4e52a9a00eb4ff1b4e868d19319d69d4d6 (diff)
downloadds-644b5531bc27c0813298c79c3f1affd50dc40dbf.tar.gz
ds-644b5531bc27c0813298c79c3f1affd50dc40dbf.tar.xz
ds-644b5531bc27c0813298c79c3f1affd50dc40dbf.zip
Bug 630098 - fix coverity Defect Type: Code maintainability issues
(cov#15521) The oldndn variable was unused in the dncache_replace() function. This patch removes the unused variable.
-rw-r--r--ldap/servers/slapd/back-ldbm/cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ldap/servers/slapd/back-ldbm/cache.c b/ldap/servers/slapd/back-ldbm/cache.c
index 120a14a9..721a838b 100644
--- a/ldap/servers/slapd/back-ldbm/cache.c
+++ b/ldap/servers/slapd/back-ldbm/cache.c
@@ -1736,7 +1736,6 @@ static int
dncache_replace(struct cache *cache, struct backdn *olddn, struct backdn *newdn)
{
int found;
- const char *oldndn;
if (!entryrdn_get_switch()) {
return 0;
@@ -1749,7 +1748,6 @@ dncache_replace(struct cache *cache, struct backdn *olddn, struct backdn *newdn)
* where the entry isn't in all the table yet, so we don't care if any
* of these return errors.
*/
- oldndn = slapi_sdn_get_ndn(olddn->dn_sdn);
PR_Lock(cache->c_mutex);
/*