From: Ruben Kerkhof Date: Sun, 24 Jul 2016 11:23:58 +0000 (+0200) Subject: openldap plugin: rc is only used once X-Git-Tag: collectd-5.6.0~181 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=71fbc51aa0092a71cbbfb8b2c16e6db9d6808d57;p=collectd.git openldap plugin: rc is only used once --- diff --git a/src/openldap.c b/src/openldap.c index 615aee33..151d25d7 100644 --- a/src/openldap.c +++ b/src/openldap.c @@ -624,9 +624,8 @@ static int cldap_config_add (oconfig_item_t *ci) /* {{{ */ if ((status == 0) && (st->url != NULL)) { LDAPURLDesc *ludpp; - int rc; - if ((rc = ldap_url_parse (st->url, &ludpp)) != 0) + if (ldap_url_parse (st->url, &ludpp) != 0) { ERROR ("openldap plugin: Instance `%s': " "Invalid URL: `%s'",