From: Fabian Keil <fk@fabiankeil.de>
Date: Wed, 21 Jul 2010 14:32:00 +0000 (+0000)
Subject: Remove an unnecessary list_remove_all() call in chat().
X-Git-Tag: v_3_0_17~125
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/developer-manual/static/@default-cgi@show-url-info?a=commitdiff_plain;h=e765d918609f9a05972233bc617728ff87f4e82b;p=privoxy.git

Remove an unnecessary list_remove_all() call in chat().

The headers are free'd later on anyway and there's no point to special-case them there.
---

diff --git a/jcc.c b/jcc.c
index ac7cadd4..dfe30af2 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.321 2010/07/12 16:01:23 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.322 2010/07/21 14:30:40 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -1615,12 +1615,8 @@ static void chat(struct client_state *csp)
    if (crunch_response_triggered(csp, crunchers_all))
    {
       /*
-       * Yes. The client got the crunch response
-       * and we are done here after cleaning up.
+       * Yes. The client got the crunch response and we're done here.
        */
-      /* XXX: why list_remove_all()? */
-      list_remove_all(csp->headers);
-
       return;
    }