1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

openldap: fix checksrc nits

This commit is contained in:
Daniel Stenberg 2017-12-06 14:58:26 +01:00
parent ff07f07cc8
commit 00cda0f9b3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -227,7 +227,7 @@ static CURLcode ldap_connect(struct connectdata *conn, bool *done)
static int do_trace = 0; static int do_trace = 0;
const char *env = getenv("CURL_OPENLDAP_TRACE"); const char *env = getenv("CURL_OPENLDAP_TRACE");
do_trace = (env && strtol(env, NULL, 10) > 0); do_trace = (env && strtol(env, NULL, 10) > 0);
if (do_trace) { if(do_trace) {
ldap_set_option(li->ld, LDAP_OPT_DEBUG_LEVEL, &do_trace); ldap_set_option(li->ld, LDAP_OPT_DEBUG_LEVEL, &do_trace);
} }
#endif #endif