summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-08-10 13:38:12 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-11 15:51:40 -0700
commited71757020a088a526e1fcd35cc44137697f3cb3 (patch)
tree2cb456536a7a8062dd1ee26b73975ea18dafdb2b
parentdea74463ed8d688e7ee19f576d39c8deb9bf8e23 (diff)
Bug 622903 - fix coverity Defect Type: Code maintainability issues
https://bugzilla.redhat.com/show_bug.cgi?id=622903 Comment: The "bval" assignment on line 636 can be removed because any value is accepted. Note: This is to set debug mode "cb_set_debug(1)" which is enabled by having nsDebug in the chaining config entry.
-rw-r--r--ldap/servers/plugins/chainingdb/cb_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/plugins/chainingdb/cb_config.c b/ldap/servers/plugins/chainingdb/cb_config.c
index 5659353c..b399ed7b 100644
--- a/ldap/servers/plugins/chainingdb/cb_config.c
+++ b/ldap/servers/plugins/chainingdb/cb_config.c
@@ -633,7 +633,7 @@ static int cb_parse_config_entry(cb_backend * cb, Slapi_Entry *e)
if ( !strcasecmp ( attr_name, CB_CONFIG_GLOBAL_DEBUG )) {
i = slapi_attr_first_value(attr, &sval);
if (i != -1 ) {
- bval = (struct berval *) slapi_value_get_berval(sval);
+ (struct berval *) slapi_value_get_berval(sval);
/* any value */
cb_set_debug(1);
}