Remove an unnecessary list_remove_all() call in chat().
authorFabian Keil <fk@fabiankeil.de>
Wed, 21 Jul 2010 14:32:00 +0000 (14:32 +0000)
committerFabian Keil <fk@fabiankeil.de>
Wed, 21 Jul 2010 14:32:00 +0000 (14:32 +0000)
The headers are free'd later on anyway and there's no point to special-case them there.

jcc.c

diff --git a/jcc.c b/jcc.c
index ac7cadd..dfe30af 100644 (file)
--- 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;
    }