From: Fabian Keil Date: Thu, 25 May 2017 11:16:04 +0000 (+0000) Subject: Reduce chat()'s stack usage X-Git-Tag: v_3_0_27~156 X-Git-Url: http://www.privoxy.org/gitweb/%40default-cgi%40edit-actions?a=commitdiff_plain;h=332f3d30ce283c8402e1830e965089563e9e62d5;p=privoxy.git Reduce chat()'s stack usage ... by removing a buffer that was left from a previous refactoring. Sponsored by: Robert Klemme --- diff --git a/jcc.c b/jcc.c index 1dbf5129..6bcd82e7 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.453 2017/05/20 09:24:08 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.454 2017/05/25 11:14:38 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -2700,14 +2700,11 @@ static void handle_established_connection(struct client_state *csp, *********************************************************************/ static void chat(struct client_state *csp) { - char buf[BUFFER_SIZE]; const struct forward_spec *fwd; struct http_request *http; /* Skeleton for HTTP response, if we should intercept the request */ struct http_response *rsp; - memset(buf, 0, sizeof(buf)); - http = csp->http; if (receive_client_request(csp) != JB_ERR_OK)