From: Fabian Keil <fk@fabiankeil.de>
Date: Wed, 4 Feb 2009 18:29:07 +0000 (+0000)
Subject: Initialize the log module before parsing arguments.
X-Git-Tag: v_3_0_11~97
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/developer-manual/static/diff?a=commitdiff_plain;h=4e2c6db9354f8f98c67de8a5940c6e4a6bccbe46;p=privoxy.git

Initialize the log module before parsing arguments.
Thanks to Matthias Drochner for the report.
---

diff --git a/jcc.c b/jcc.c
index c7be81bb..ea4ae644 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.218 2009/01/31 12:25:54 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.219 2009/01/31 16:08:21 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -33,6 +33,9 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.218 2009/01/31 12:25:54 fabiankeil Exp $"
  *
  * Revisions   :
  *    $Log: jcc.c,v $
+ *    Revision 1.219  2009/01/31 16:08:21  fabiankeil
+ *    Remove redundant error check in receive_client_request().
+ *
  *    Revision 1.218  2009/01/31 12:25:54  fabiankeil
  *    Flatten indentation in receive_client_request().
  *
@@ -3564,6 +3567,9 @@ int main(int argc, const char *argv[])
 #endif
       ;
 
+   /* Enable logging until further notice. */
+   init_log_module(Argv[0]);
+
    /*
     * Parse the command line arguments
     *
@@ -3720,9 +3726,6 @@ int main(int argc, const char *argv[])
    /* Prepare mutexes if supported and necessary. */
    initialize_mutexes();
 
-   /* Enable logging until further notice. */
-   init_log_module(Argv[0]);
-
    random_seed = (unsigned int)time(NULL);
 #ifdef HAVE_RANDOM
    srandom(random_seed);