gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: simplify


From: gnunet
Subject: [libmicrohttpd] branch master updated: simplify
Date: Sat, 27 Feb 2021 20:58:55 +0100

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 6b3d0c27 simplify
6b3d0c27 is described below

commit 6b3d0c27b79ef0622ce1b0147bdaeabee97ff59e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Feb 27 20:57:33 2021 +0100

    simplify
---
 src/microhttpd/digestauth.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 3ab1ec13..5fc9c588 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -629,7 +629,6 @@ check_nonce_nc (struct MHD_Connection *connection,
 char *
 MHD_digest_auth_get_username (struct MHD_Connection *connection)
 {
-  size_t len;
   char user[MAX_USERNAME_LENGTH];
   const char *header;
 
@@ -646,10 +645,10 @@ MHD_digest_auth_get_username (struct MHD_Connection 
*connection)
                     MHD_STATICSTR_LEN_ (_BASE)))
     return NULL;
   header += MHD_STATICSTR_LEN_ (_BASE);
-  if (0 == (len = lookup_sub_value (user,
-                                    sizeof (user),
-                                    header,
-                                    "username")))
+  if (0 == lookup_sub_value (user,
+                             sizeof (user),
+                             header,
+                             "username"))
     return NULL;
   return strdup (user);
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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