Browse Source

Bug 630098 - fix coverity Defect Type: Code maintainability issues

(cov#15521) The newndn variable was unused in the dncache_replace() function.
This patch removes the unused variable.
Nathan Kinder 15 years ago
parent
commit
8eddca4e52
1 changed files with 0 additions and 2 deletions
  1. 0 2
      ldap/servers/slapd/back-ldbm/cache.c

+ 0 - 2
ldap/servers/slapd/back-ldbm/cache.c

@@ -1737,7 +1737,6 @@ dncache_replace(struct cache *cache, struct backdn *olddn, struct backdn *newdn)
 {
     int found;
     const char *oldndn;
-    const char *newndn;
 
     if (!entryrdn_get_switch()) {
         return 0;
@@ -1751,7 +1750,6 @@ dncache_replace(struct cache *cache, struct backdn *olddn, struct backdn *newdn)
      * of these return errors.
      */
     oldndn = slapi_sdn_get_ndn(olddn->dn_sdn);
-    newndn = slapi_sdn_get_ndn(newdn->dn_sdn);
     PR_Lock(cache->c_mutex);
 
     /*