kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit bcfb79a389b6bc7689fc6e3d1ec2f3035231870a
parent 351eec7eb44998093ffd90f2e0aa0ecdbacf2330
Author: Joris Vink <joris@coders.se>
Date:   Fri, 17 Sep 2021 19:49:32 +0200

Remove dead assignment and unused vars.

Diffstat:
src/http.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -1906,9 +1906,9 @@ http_request_new(struct connection *c, const char *host, { struct kore_domain *dom; struct http_request *req; + size_t qsoff; char *p, *hp; int m, flags, exists; - size_t hostlen, pathlen, qsoff; if (http_request_count >= http_request_limit) { http_error_response(c, HTTP_STATUS_SERVICE_UNAVAILABLE); @@ -1918,12 +1918,12 @@ http_request_new(struct connection *c, const char *host, kore_debug("http_request_new(%p, %s, %s, %s, %s)", c, host, method, path, version); - if ((hostlen = strlen(host)) >= KORE_DOMAINNAME_LEN - 1) { + if (strlen(host) >= KORE_DOMAINNAME_LEN - 1) { http_error_response(c, HTTP_STATUS_BAD_REQUEST); return (NULL); } - if ((pathlen = strlen(path)) >= HTTP_URI_LEN - 1) { + if (strlen(path) >= HTTP_URI_LEN - 1) { http_error_response(c, HTTP_STATUS_REQUEST_URI_TOO_LARGE); return (NULL); }