libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

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

simplify

Diffstat:
Msrc/microhttpd/digestauth.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git 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); }