diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-09-18 22:50:04 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-09-18 22:50:04 +0200 |
commit | 9de4b2664312f0e956305a3f6180f6c6eee10e06 (patch) | |
tree | 849184ed615cc61f96285cd3f19cc05170b314b9 | |
parent | 3208757c1af6e3a46bce786430d9dca2ea6f5e76 (diff) | |
download | curl-9de4b2664312f0e956305a3f6180f6c6eee10e06.tar.gz |
LDAP: moved variable declaration to avoid compiler warn
If built without HTTP or proxy support it would cause a compiler warning
due to the unused variable. I moved the declaration of it into the only
scope it is used.
-rw-r--r-- | lib/openldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/openldap.c b/lib/openldap.c index 3382c7724..4d5db4a51 100644 --- a/lib/openldap.c +++ b/lib/openldap.c @@ -178,7 +178,6 @@ static Sockbuf_IO ldapsb_tls; static CURLcode ldap_connect(struct connectdata *conn, bool *done) { - CURLcode result; ldapconninfo *li = conn->proto.generic; struct SessionHandle *data=conn->data; int rc, proto = LDAP_VERSION3; @@ -205,6 +204,7 @@ static CURLcode ldap_connect(struct connectdata *conn, bool *done) /* for LDAP over HTTP proxy */ struct HTTP http_proxy; ldapconninfo *li_save; + CURLcode result; /* BLOCKING */ /* We want "seamless" LDAP operations through HTTP proxy tunnel */ |