diff options
author | Viktor Szakats <vszakats@users.noreply.github.com> | 2017-10-15 15:59:43 +0000 |
---|---|---|
committer | Viktor Szakats <vszakats@users.noreply.github.com> | 2017-10-15 15:59:43 +0000 |
commit | 748f5301c0a91ad8bab2b74097bc25e3d99317b9 (patch) | |
tree | aba8026e12364c87d5a91e33297f9e647c3420d8 /lib/ldap.c | |
parent | ed0b6b18f6d930d7123d14a1bdd0f3cc73dcb83b (diff) | |
download | curl-748f5301c0a91ad8bab2b74097bc25e3d99317b9.tar.gz |
ldap: silence clang warning
Use memset() to initialize a structure to avoid LLVM/Clang warning:
ldap.c:193:39: warning: missing field 'UserLength' initializer [-Wmissing-field-initializers]
Closes https://github.com/curl/curl/pull/1992
Diffstat (limited to 'lib/ldap.c')
-rw-r--r-- | lib/ldap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c index 040641cf8..89047bcbd 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -190,9 +190,11 @@ static int ldap_win_bind_auth(LDAP *server, const char *user, const char *passwd, unsigned long authflags) { ULONG method = 0; - SEC_WINNT_AUTH_IDENTITY cred = { 0, }; + SEC_WINNT_AUTH_IDENTITY cred; int rc = LDAP_AUTH_METHOD_NOT_SUPPORTED; + memset(&cred, 0, sizeof(cred)); + #if defined(USE_SPNEGO) if(authflags & CURLAUTH_NEGOTIATE) { method = LDAP_AUTH_NEGOTIATE; |