Code

openldap plugin: rc is only used once
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:23:58 +0000 (13:23 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:25:23 +0000 (13:25 +0200)
src/openldap.c

index 615aee338b28b70cba4cab0260c09d3ba7c1a847..151d25d77120f8fe0e747da31b455fa075c436d1 100644 (file)
@@ -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'",