libmicrohttpd

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

commit 63dd1bff0fe85142967612346c7b580b9af336ac
parent d06ee976c01d7a691cbedccbba86d8a155a3a876
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 27 Jun 2021 22:39:31 +0300

MHD_del_response_header(): removed unused variable

Diffstat:
Msrc/microhttpd/response.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -301,7 +301,6 @@ MHD_del_response_header (struct MHD_Response *response, const char *content) { struct MHD_HTTP_Header *pos; - struct MHD_HTTP_Header *prev; size_t header_len; size_t content_len; @@ -310,7 +309,6 @@ MHD_del_response_header (struct MHD_Response *response, return MHD_NO; header_len = strlen (header); content_len = strlen (content); - prev = NULL; pos = response->first_header; while (NULL != pos) { @@ -329,7 +327,6 @@ MHD_del_response_header (struct MHD_Response *response, free (pos); return MHD_YES; } - prev = pos; pos = pos->next; } return MHD_NO;