gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 54/73: ldap: silence clang warning


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 54/73: ldap: silence clang warning
Date: Tue, 24 Oct 2017 18:54:35 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 748f5301c0a91ad8bab2b74097bc25e3d99317b9
Author: Viktor Szakats <address@hidden>
AuthorDate: Sun Oct 15 15:59:43 2017 +0000

    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
---
 lib/ldap.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]